Split text using java

fadyakkar123 Messages postés 1 Date d'inscription   Statut Membre Dernière intervention   -  
irmeche Messages postés 71 Date d'inscription   Statut Membre Dernière intervention   -
I want to split this two columns on java and put the frensh words in an arraylist and the english words in an another arraylist , thanks for help








bonjour;goodmorning
bonsoir;goodevening
chat;cat
comment;how
pourquoi;why
A voir également:

1 réponse

irmeche Messages postés 71 Date d'inscription   Statut Membre Dernière intervention   17
 
use

List list = new ArrayList<String>();
String[] result = "bonjour;goodmorning ".split(";");

for (String string : result) {
list.add(string);
}
0