package Mapp;
import java.util.HashMap;
import java.util.Map;
public class MapbigData {
//map数据量大的时候,采用方法
public static void main(String[] args) {
Map<String,String> map=new HashMap<>();
map.put("1","cui");
map.put("2","jian");
map.put("3","xin");
for (Map.Entry entity:
map.entrySet()) {
System.out.println(entity.getKey()+"=================="+entity.getValue());
}
}
}
Map遍历
于 2022-06-30 14:41:50 首次发布