.forEach and .sort don't work and cannot set breakpoints in blocks
问题 I am using Java 8 (build 1.8.0_25), Netbeans 8.0.2 and am incorporating some of the Java 8 features into an existing app. Sorting and .forEach is not working so I have created some test code to ensure I understand lambdas, etc. and to diagnose the problem. Below is a mix of new code as well as code to interact with the data from my system: public void test(Registration reg) { /* new code */ List<String> family = new ArrayList<>(); family.add("Mom"); family.add("Dad"); family.add("Brother");