Created
August 8, 2019 23:04
-
-
Save parzibyte/6f12058414878fd09306c95e9ca164e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Convertir cadena a arreglo en Java | |
https://parzibyte.me/blog | |
*/ | |
class Main { | |
public static void main(String[] args) { | |
String lenguajesComoCadena = "Go,PHP,JavaScript,Python"; | |
String separador = ","; | |
String[] lenguajesComoArreglo = lenguajesComoCadena.split(separador); | |
for (String lenguaje: lenguajesComoArreglo) { | |
System.out.println(lenguaje); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment