-
Notifications
You must be signed in to change notification settings - Fork 2
/
Fixed.java
65 lines (52 loc) · 1.34 KB
/
Fixed.java
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
import java.util.ArrayList;
import java.util.Random;
public class Fixed {
public static void main(String[] args) {
ArrayList<String> arr = new ArrayList<>();
int arrSize = arr.size();
Random k = new Random();
for(int i = 0; i < arrSize; i++) {
int num = k.nextInt(10);
System.out.println(num);
}
int m = 1;
int res = 0;
switch(m) {
case 1:
res = 1;
break;
case 2:
res = 2;
break;
case 3:
res = 3;
break;
case 4:
res = 4;
break;
case 5:
res = 5;
break;
case 6:
res = 6;
break;
case 7:
res = 7;
break;
default :
res = -1;
break;
}
boolean a = true;
boolean b = true;
boolean c = true;
int num2 = 1;
if((a && b) && c) {
num2 = -1;
}
//System.out.println("Hello World\n");
//System.out.println("Hello World\n");
//System.out.println("Hello World\n");
//System.out.println("Hello World\n");
}
}