S.Record
article thumbnail
190617. 4장 조건문과 반복문. 예제. //주석
dev.lang/Java 2019. 6. 17. 21:37

FlowEx01.java public class FlowEx01 { public static void main(String[] args) { int x = 0; System.out.printf("x = %d 일 때, 참인 것은%n", x); if(x == 0) System.out.println("x == 0"); if(x != 0) System.out.println("x! == 0"); if(!(x == 0)) System.out.println("!(x == 0)"); if(!(x != 0)) System.out.println("!(x != 0)"); x = 1; System.out.printf("x = %d 일 때, 참인 것은%n", x); if(x == 0) System.out.println("x =..