Advertisement
techno-

selectCandidates

Nov 4th, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. package e2;
  2.  
  3. import java.util.Iterator;
  4.  
  5. public class selectCandidates {
  6.     public static void selectCandidates(TVRealityList TV){
  7.         Iterator<String> it = TV.iterator();
  8.         while(it.hasNext()){
  9.             System.out.println("("+it.next()+")");
  10.             it.remove();
  11.         }
  12.         System.out.println("Ganador: " + TV.getLista().get(0));
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement