-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOperators.java
More file actions
27 lines (21 loc) · 1.11 KB
/
Operators.java
File metadata and controls
27 lines (21 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public class Operators {
public static void main(String[] args) {
String myString = "my" + "String";
System.out.println(myString);
System.out.println("Boolean 연산자 - and &&");
System.out.println("true && true : " + (true && true));
System.out.println("true && false : " + (true && false));
System.out.println("false && true : " + (false && true));
System.out.println("false && false : " + (false && false));
System.out.println("Boolean 연산자 - or ||");
System.out.println("true || true : " + (true || true));
System.out.println("true || false : " + (true || false));
System.out.println("false || true : " + (false || true));
System.out.println("false || false : " + (false || false));
System.out.println("Boolean 연산자 - not 보수 !");
System.out.println("!true : " + !true);
System.out.println("!false : " + !false);
System.out.println(!(false && (true||false)));
System.out.println("데카르트는 \"나는 생각한다. 고로 존재한다.\"라고 말했다.");
}
}