Java8语法糖List<Integer>,List<String>,List<Long>,String之间互转
publicclassTest{publicstaticvoidmain(String[]args){ListintegerList=newArrayList转为ListListstringList=integerList.stream().map(String::valueOf).collect(Collectors.toList());System.out.println("List转为Lis