-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
51 lines (43 loc) · 982 Bytes
/
Test.java
File metadata and controls
51 lines (43 loc) · 982 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import java.util.List;
public class Test {
/* public static int i = 1;
private int a = 1;
private static int b = 128;
private static int c = 11;
private int d = 9;
private int e = 129;
public final static Object obj = new Object();
public final String str1 = "abc";
public final String str2 = new String("bcd");
public String str3 = "LineNumberTable";
public String str4 = new String("123");
public String str5 = "123";*/
/* public <T> T print(T val) {
System.out.print(val);
return val;
}
public void loop(List<String> lists) {
for (String s : lists) {
s.intern();
}
}
public static void main(String[] args) {
Test t = new Test();
String param = "say hello";
String val = t.print(param);
}
*/
/*public void loop() {
int[] array = new int[] {1, 2, 4, 6, 7, 8};
for (int i : array) {
i++;
}
}*/
public void ifFunction() {
if(true) {
System.out.print("if 1");
} else {
System.out.print("if 2");
}
}
}