关于数组与集合list,map的互转

现在已知一数组,想转成MAP,找了找,好像没有可以直接转的 ,

只有数组转为list的

  Arrays.asList(数组) ;//把数组转换为list
  Arrays.sort(数组) ; //对数组对象排序
  list.toArray() //list转换为数组

你可能感兴趣的:(关于数组与集合list,map的互转)