List集合與Array數組之間的互相轉換

數組轉換成List集合 方法一 笨方法就是經過add把數組中的數據循環添加到List集合中 List<String> mlist = new ArrayList<>(); String[] array = new String[] {"zhu", "wen", "tao"}; // String數組轉List集合 for (int i = 0; i < array.leng
相關文章
相關標籤/搜索