I have figured out how to do this. All that is needed is the .useDelimeter error. help?
import java.io.*;
import java.util.*;
public class AddEmUp
{public static void main(String args[]){
`Scanner sc = new Scanner(System.in);
System.out.print("Enter something like 8 + 33 + 1,345 - 137 : ");
String s = sc.nextLine();
`if((s.charAt(0)!='+')&&(s.charAt(0)!='-'))
`s = "+" + s;
Scanner sc1=new Scanner(s);
sc1.useDelimeter("\s\+\s|\s-\s");
`int sum = 0;
while(sc1.hasNextInt())
{`
`if(sc1.findInLine("\\s*\\+\\s*")!=null)
`sum = sum + sc1/nextInt();
`else
`sc1.nextInt();
}
Scanner sc2 = new Scanner(s);
sc2.useDelimeter("\s\+\s|\s-\s");
while(sc2.hasNextInt())
{`
`if(sc2.findInLine("\\s*-\\s*")!=null)
`sum=sum - sc2.nextInt();
`else
`sc2.nextInt();
}
System.out.println("Sum is: " +sum);
}}`