Guest User

Untitled

a guest
Jan 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public String [][] partirString (String acc) {
  2. String [] [] res;
  3. //Primero partimos por el espacio
  4. String [] aux = acc.split(" ");
  5. //Con esto sabemos el número de filas de la matriz
  6. res = new String[aux.length][];
  7. //Ahora partiremos por el ;
  8. for (int ii=0; ii<aux.length;ii++){
  9. res[ii] = aux[ii].split(";");
  10. }
  11. return res;
  12. }
Add Comment
Please, Sign In to add comment