-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppMain.java
More file actions
50 lines (41 loc) · 1.27 KB
/
AppMain.java
File metadata and controls
50 lines (41 loc) · 1.27 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
import Collection.MyHashSet;
import PaperTest.Main;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
/**
* @projectName: javaStudy
* @className: AppMain
* @author: WenYichong
* @date: 2019/8/4-21:49
* @description: 连我自己都不知道在写什么......
*/
public class AppMain {
@Test
public void test() {
// System.out.println("Hello World!");
// String myName = "小明";
// Main ma=new Main();
// System.out.println(myName.hashCode());
// Integer i=new Integer(999);
// System.out.println(i.hashCode());
// Map<String,String > map =new HashMap<>();
// Map<String,String > map2 =new HashMap<>();
// map.put("01","jjjj");
// map.put("01","jjjj");
// map2.put("01","jjjj");
// System.out.println(map.toString());
// System.out.println(map.hashCode());
// System.out.println(map2.hashCode());
char ch='我';
System.out.println(ch);
String str="我爱你";
System.out.println(str.length());
Map<String ,String > mapTree=new TreeMap<>();
mapTree.put("01","jjjj");
mapTree.put(str,"jjjj");
mapTree.put(str,"jjj2j");
System.out.printf(mapTree.toString());
}
}