使用jdk8开发过程中经常会用到lamda表达式。由于式匿名函数lamda缩写 所以断点有时候没有效果;本文旨在介绍stream断点;
public class TestLamda { public static void main(String[] args) { Stream.of(new Integer[]{2,4,5,6,7,8,8,8,5}).filter(integer -> integer != 6). forEach( System.out::println ); }}
断点在forEach上,然后点击此按钮
即可看到内部执行的结果。