java8 hashMap排序的新認識

public static void main(String[] args) { // 建立map Map<String, Integer> maps = new HashMap<String, Integer>(); maps.put("12", 12); maps.put("11", 11); maps.put("2", 2); // 輸出 初始化後的map map
相關文章
相關標籤/搜索