看板 [ java ]
討論串[問題]關於comparator& Map
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ogamenewbie (._.)時間17年前 (2008/12/29 22:43), 編輯資訊
0
0
0
內容預覽:
TreeMap. public TreeMap(Comparator c). Constructs a new, empty map, sorted according to the given comparator.. All keys inserted into the map must be
(還有339個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者jojoharebell時間17年前 (2008/12/29 22:36), 編輯資訊
0
0
0
內容預覽:
Map<String , Integer> items. = new TreeMap<String,Integer>(new myComparator());. 我自己建了個class myaComparator. 準備排序TreeMap. 可是在黃色的地方卻出錯了. public class my
(還有697個字)
首頁
上一頁
1
下一頁
尾頁