Etwas
public text v1 · immutablepublic class Calc {
public static void main(String[] args)
{
double x;
double y;
double result;
int Command;
x=Double.parseDouble(args[0]);
Command=Integer.parseInt(args[1]);
y=Double.parseDouble(args[2]);
result = Command;
if (Command == 1) result = x+y;
if (Command == 2) result = x-y;
if (Command == 3) result = x*y;
if (Command == 4) result = x/y;
//else System.out.println("Wrong Input");
System.out.println(result);
}
}