Bonsoir à tous,
j'utilise un stringTokentizer, j'arrive a séparer (j'ai l'habiture), mais je n'arrive pas à séparer par apostrophe
Exemple:
String phrase= "L'elephant est bleu";
//initialise le stringToken
mot= new StringTokenizer(phrase,"' ",true);
Si j'imprime un à un mot, je recois
L'elephant
est
bleu
Impossible donc à faire passer mon apostrophe dans le Delim pour un apostrophe.
Quelqu'un voit la solution?
MERCI
Partager