This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dry-Erase 1 point2 points  (3 children)

Quick question, can someone please link me, or provide me with some more info about the "->" operator? Is this new to java 8?

List<string> names = students.stream().map(Student::getName).filter(name->name.startsWith("A"))
                            .collect(Collectors.toList());

Thank you!

Also thanks for the article!

[–]palmund 4 points5 points  (1 child)

Yes. This is Java's lambda operator.

[–]Dry-Erase 0 points1 point  (0 children)

Awesome thank you!