For example, map holding the scores of the users. Map<String, Integer> playerScores = players.stream().collect(toMap(Player::name, Player::score));
確定! 回上一頁