1
  List<String> stringList = Arrays.asList("1","2","3","4","5");

 stringList.stream().mapToInt(n-> Integer.parseInt(n)).    
 filter(n-> n%2 == 0).forEach(System.out::println);

This pops up in the compiler's screen:

n cannot be resolved to a variable n cannot be resolved to a variable Syntax error on token "-", -- expected n cannot be resolved to a variable Syntax error on tokens, delete these tokens println cannot be resolved to a variable

0 Answers0