Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package e2;
- import java.util.Iterator;
- public class selectCandidates {
- public static void selectCandidates(TVRealityList TV){
- Iterator<String> it = TV.iterator();
- while(it.hasNext()){
- System.out.println("("+it.next()+")");
- it.remove();
- }
- System.out.println("Ganador: " + TV.getLista().get(0));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement