-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperators.java
More file actions
34 lines (28 loc) · 884 Bytes
/
operators.java
File metadata and controls
34 lines (28 loc) · 884 Bytes
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
28
29
30
31
32
33
34
public class operators {
public static void main(String[] args) {
//Relarional Operator
// System.out.println(4 < 9);
// System.out.println(4 > 9);
// System.out.println(4 <= 9);
// System.out.println(4 >= 9);
// System.out.println(4 != 9);
//logical operator
// System.out.println(4 < 9 && 5==5);
// System.out.println(4 < 9 || 5==5);
// System.out.println(!(5==5));
//Increament and decreament
// int a=20;
// int b=80;
// System.out.println(++a);
// System.out.println(b++);
// System.out.println(b);
// System.out.println(--b);
// System.out.println(a--);
// System.out.println(a);
// System.out.println(b);
//Assingment Operator
int n=10;
n+=10;
System.out.println(n);
}
}