I need to get string from between two characters. I have this
S= \"10:21:35 |Manipulation |Mémoire centrale |MAJ Registre mémoire\"
a
Like in other answers I suggest you using split() method to separate your string but remeber to use trim if you won't have spaces after parts, like this:
S= "10:21:35 |Manipulation |Mémoire centrale |MAJ Registre mémoire"
String splitted[] = S.split("\\|");
String a = splitted[0].trim();
String b = splitted[1].trim();
...