摘要:
问题: 在使用Stream()流进行操作变量的时候,会不时碰到:variable used in lambda expression should be final or effectively final,这是因为在Java 8 之前,匿名类中如果要访问局部变量的话,那个局部变量必须显式的声明为f 阅读全文
摘要:
@Test public void testStream01(){ ArrayList<ChargeStudent> stu1 = new ArrayList<>(); ArrayList<ChargeStudent> stu2 = new ArrayList<>(); for (int i= 5; 阅读全文