-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
27 lines (23 loc) · 662 Bytes
/
Test.java
File metadata and controls
27 lines (23 loc) · 662 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
package basic;
/**
* @ClassName Test
* @Description
* @Author changxuan
* @Date 2020/7/11 下午9:21
**/
public class Test {
public static void main(String[] args) {
System.out.println(SizeEnum.SMALL.ordinal());
Integer i = 1234567;
Long l = 999l;
System.out.println(i.hashCode());
System.out.println(Integer.rotateLeft(i, 4));
String str1 = "1111";
String str2 = "1111";
System.out.println(str1 == str2);
SizeEnum[] values = SizeEnum.values();
for (SizeEnum item : values){
System.out.println("Number:"+item.getId()+",Msg:"+item.name());
}
}
}