📄 treemapdemo.java
字号:
import java.util.*;
class TreeMapDemo
{
public static void main(String[] args)
{
HashMap hm=new HashMap();
hm.put(new Integer(1),"one");
hm.put(new Integer(2),"two");
hm.put(new Integer(3),"three");
hm.put(new Integer(4),"four");
hm.put(new Integer(5),"five");
System.out.println(hm);
System.out.println();
TreeMap tm=new TreeMap();
tm.put(new Integer(2),"two");
tm.put(new Integer(4),"four");
tm.put(new Integer(1),"one");
tm.put(new Integer(3),"three");
tm.put(new Integer(5),"five");
System.out.println(tm);
System.out.println();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -