@@ -0,0 +1,1920 @@
+public class Calculate %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09String method = args%5B0%5D;%0A%09%09String result = %22%22;%0A%0A%09%09switch(method) %7B%0A%09%09%09case %22add%22:%0A%09%09%09%09result = add(args%5B1%5D, args%5B2%5D);%0A%09%09%09%09break;%0A                        case %22subtract%22:%0A                                result = subtract(args%5B1%5D, args%5B2%5D);%0A                                break;%0A                        case %22multiply%22:%0A                                result = multiply(args%5B1%5D, args%5B2%5D);%0A                                break;%0A                        case %22divide%22:%0A                                result = divide(args%5B1%5D, args%5B2%5D);%0A                                break;%0A                        case %22mod%22:%0A                                result = mod(args%5B1%5D, args%5B2%5D);%0A                                break;%0A%0A%09%09%7D%0A%09%09System.out.println(result);%0A%09%7D%0A%0A%09private static String add(String a, String b) %7B%0A%09%09double number1 = Double.valueOf(a);%0A%09%09double number2 = Double.valueOf(b);%0A%09%09return String.valueOf(number1 + number2);%0A%09%7D%0A%0A        private static String subtract(String a, String b) %7B%0A                double number1 = Double.valueOf(a);%0A                double number2 = Double.valueOf(b);%0A                return String.valueOf(number1 - number2);%0A        %7D%0A%0A        private static String multiply(String a, String b) %7B%0A                double number1 = Double.valueOf(a);%0A                double number2 = Double.valueOf(b);%0A                return String.valueOf(number1 * number2);%0A        %7D%0A%0A        private static String divide(String a, String b) %7B%0A                double number1 = Double.valueOf(a);%0A                double number2 = Double.valueOf(b);%0A                return String.valueOf(number1 / number2);%0A        %7D%0A%0A        private static String mod(String a, String b) %7B%0A                int number1 = Integer.valueOf(a);%0A                int number2 = Integer.valueOf(b);%0A                return String.valueOf(number1 %25 number2);%0A        %7D%0A%0A%0A%7D%0A

Create calculator program