public class test { public static void main (String arg[]){ String x = "5+3-2*1--2)"; String[] y; y=x.split("\\s*\\-\\s*"); for (int z=0; z