SHARE
TWEET

Untitled

a guest Oct 20th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void displayTeams(List<Team> teams) {
  2.         teams.stream()
  3.                 .map(
  4.                         iteratedTeam -> iteratedTeam.getName() +
  5.                                 ": " + iteratedTeam.getFirstPlayer().getName() + ", " + iteratedTeam.getSecondPlayer().getName())
  6.                 .forEach(System.out::println);
  7.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top