forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExpr0.java
More file actions
36 lines (27 loc) · 501 Bytes
/
Expr0.java
File metadata and controls
36 lines (27 loc) · 501 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
35
36
class Expr0 {
public static void main(String[] args) {
int x = 0;
if (x++ == 0) {
System.out.println(x);
}
System.out.println(x);
int y = 0;
if (++y == 1) {
System.out.println(y);
}
System.out.println(y);
int z = 0;
if (--z == -1) {
System.out.println(z);
}
System.out.println(z);
int w = 0;
if (w-- == 0) {
System.out.println(w);
}
System.out.println(w);
for (int i = 0; i<3; ++i) {
System.out.println(i);
}
}
}