cursos.stream().filter(c -> c.getAlunos() >= 50).forEach(c -> System.out.println(c.getNome()));
saída no console: c java 8 javaScript
cursos.stream().filter(c -> c.getAlunos() >= 50).forEach(c -> System.out.println(c.getNome()));
saída no console: c java 8 javaScript
Correto Sillas.
cursos.stream()
.filter(c -> c.getAlunos() > 50)
.forEach(c -> System.out.println(c.getNome()));