lamda循环_for循环在JAVA中使用lambda表达式
My Code:List ints = Stream.of(1,2,4,3,5).collect(Collectors.toList());ints.forEach((i)-> System.out.print(ints.get(i-1)+ " "));out put:1 2 3 4 5my question is why i must be i-1 inside the get metho...