Advertisement
chete

barajaaaaa

Apr 21st, 2014
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. package baraja;
  2. import java.util.ArrayList;
  3. import java.util.Iterator;
  4. import java.util.Scanner;
  5. public class Baraja {
  6.  
  7. public static void main(String[] args) {
  8. // TODO Auto-generated method stub
  9. // leer cadena e introducirla en un array
  10. ArrayList<String> Cartas = new ArrayList();
  11. Scanner lee = new java.util.Scanner(System.in);
  12. String cadena = lee.nextLine().trim();
  13. String[] serie = cadena.split(" ");
  14.  
  15.  
  16. for (int i = 0; i< serie.length; i++){
  17. Cartas.add(serie[i]);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement