forked from jhipster/prettier-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_input.java
More file actions
86 lines (80 loc) · 1.52 KB
/
_input.java
File metadata and controls
86 lines (80 loc) · 1.52 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
public class If {
public void simpleIf(boolean one) {
if (one) {
System.out.println("one");
}
}
public void ifElse(boolean one) {
if (one) {
System.out.println("one");
} else {
System.out.println("not one");
}
}
public boolean shortIfElse(boolean one) {
return one ? true : false;
}
public void ifElseIfElse(boolean one, boolean two) {
if (one) {
System.out.println("one");
} else if (two) {
System.out.println("two");
} else {
System.out.println("not on or two");
}
}
public void ifElseIfElseIfElse(boolean one, boolean two, boolean three) {
if (one) {
System.out.println("one");
} else if (two) {
System.out.println("two");
} else if (three) {
System.out.println("three");
} else {
System.out.println("not on or two or three");
}
}
void longIfElseChain() {
if (1) {
// 1
} else if (2) {
// 2
} else if (3) {
// 3
} else if (4) {
// 4
} else if (5) {
// 5
} else if (6) {
// 6
} else if (7) {
// 7
} else if (8) {
// 8
} else if (9) {
// 9
} else if (10) {
// 10
} else if (11) {
// 11
} else if (12) {
// 12
} else if (13) {
// 13
} else if (14) {
// 14
} else if (15) {
// 15
} else if (16) {
// 16
} else if (17) {
// 17
} else if (18) {
// 18
} else if (19) {
// 19
} else if (20) {
// 20
}
}
}