Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String [][] partirString (String acc) {
- String [] [] res;
- //Primero partimos por el espacio
- String [] aux = acc.split(" ");
- //Con esto sabemos el número de filas de la matriz
- res = new String[aux.length][];
- //Ahora partiremos por el ;
- for (int ii=0; ii<aux.length;ii++){
- res[ii] = aux[ii].split(";");
- }
- return res;
- }
Add Comment
Please, Sign In to add comment