Quantcast
Viewing latest article 4
Browse Latest Browse All 5

Answer by Dennis Kriechel for Splitting a string in java on more than one symbol

You need Regular Expression. Addionaly you need the regex OR operator:

String[]tokens = Stringname.split("\\+|\\-|\\*|\\/|\\=");

Viewing latest article 4
Browse Latest Browse All 5

Trending Articles