Java Iterator转换成List3种方式(while循环、forEachRemaining()、StreamSupport.stream())
1 while循环 Iterator<String> stringIterator = new ArrayList<>(Arrays.asList("a", "b", "c")).iterator(); //使用while循环将Iterator转换成List List<String> list = new Arr