You need Regular Expression. Addionaly you need the regex OR
operator:
String[]tokens = Stringname.split("\\+|\\-|\\*|\\/|\\=");
You need Regular Expression. Addionaly you need the regex OR
operator:
String[]tokens = Stringname.split("\\+|\\-|\\*|\\/|\\=");