Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package baraja;
- import java.util.ArrayList;
- import java.util.Iterator;
- import java.util.Scanner;
- public class Baraja {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- // leer cadena e introducirla en un array
- ArrayList<String> Cartas = new ArrayList();
- Scanner lee = new java.util.Scanner(System.in);
- String cadena = lee.nextLine().trim();
- String[] serie = cadena.split(" ");
- for (int i = 0; i< serie.length; i++){
- Cartas.add(serie[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement