集合

CaseInsensitiveMap不区分大小写的无序map;

LinkedCaseInsensitiveMap不区分大小写的有序map;

都是小写

public static void main(String[] args) {
HashMap<Object, Object> map = new HashMap<>();
map.put("aa", "AA");
map.put("AA","aa");
CaseInsensitiveMap caseInsensitiveMap = new CaseInsensitiveMap(map);
System.out.println(caseInsensitiveMap);
System.out.println(map);
}

二、
values()方法的作用是得到HashMap中的value的集合
posted @ 2022-09-05 16:41  99-1  阅读(37)  评论(0)    收藏  举报