List<String>strList = {"a","b","c"}
Map<Integer,String>map = new HashMap<Integer,String>()
for(int i=1i<=strList.size()i++){
map.put(i,strList.get(i))
}
欢迎分享,转载请注明来源:内存溢出
List<String>strList = {"a","b","c"}
Map<Integer,String>map = new HashMap<Integer,String>()
for(int i=1i<=strList.size()i++){
map.put(i,strList.get(i))
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)