【学习记录 time: 2022-07-21】Java8 Lambda 表达式中的 forEach 如何提前终止?
forEach提前终止问题场景复现解决方案场景复现publicclassForEachTest{publicstaticvoidmain(String[]args){String[]strs={"java","php","python","c++","c#"};ArrayListlist=newArrayList{if(e.contains("python")){System.out.print(