I have a list of names (first and last). I need find a way to split at the " " and ONLY print the last name to the console. I have this currently, but, of course, it's still printing the first name.
for (int i=0; i<players.size(); i++) { String s = players.get(i).toString(); for(String token:s.split(" ")) System.out.println(token);