Community
Participate
Working Groups
Consider this code: String[] personsArray = { "Fred", "Jane", "Jo", "George" }; List<String> persons = Arrays.asList(personsArray); for (String person : persons) { System.out.println(person); } One should get a "Convert to Streams" quick fix when the "for" line is selected, or one have clicked into it. This should produce: persons.stream().forEach((person) -> System.out.println(person)); or persons.stream().forEach((person) -> { System.out.println(person); });
*** This bug has been marked as a duplicate of bug 431967 ***