public class Kal0 public static void main String args int String numbe

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public class Kal0{
public static void main(String[] args){
int x=0;
String number="";
String sign="";
java.util.Vector plus=new java.util.Vector();
java.util.Vector minus=new java.util.Vector();
while
{
System.out.println("Enter a number");
java.util.Scanner scan = new java.util.Scanner(System.in);
number = String.valueOf(scan.next());
System.out.println("Enter a math operation");
java.util.Scanner scan2 = new java.util.Scanner(System.in);
sign = String.valueOf(scan2.next());
}
double [] a=new double[n];
String b[]=new String[n];
for(int i=0; i<a.length; i++){
if(b[i].equals("+"){x+=a[i];}
if(b[i].equals("-"){x-=a[i];}
}