@@ -0,0 +1,888 @@
+package task2_3;%0A%0Apublic class Calculator%7B%0A%09private double a=2.5;%0A%09private double b=5.1;%0A%09private double result;%0A%09public static void main(String%5B%5D args)%7B%0A%09%09%0A%09%09Calculator calc = new Calculator();%0A%09%09%09%09%09%09%0A%09%09calc.plus(calc.a, calc.b);%0A%09%09calc.getResult(calc.result);%0A%09%09calc.minus(calc.a, calc.b);%0A%09%09calc.getResult(calc.result);%0A%09%09calc.multiply(calc.a, calc.b);%0A%09%09calc.getResult(calc.result);%0A%09%09calc.devide(calc.a, calc.b);%0A%09%09calc.getResult(calc.result);%0A%09%7D%0A%09%09public void plus (double a, double b)%7B%0A%09%09%09this.result=a+b;%0A%09%09%7D%0A%09%09%0A%09%09public void minus (double a, double b)%7B%0A%09%09%09this.result=a-b;%0A%09%09%7D%0A%09%09%0A%09%09public void multiply (double a, double b)%7B%0A%09%09%09this.result=a*b;%0A%09%09%7D%0A%09%09%0A%09%09public void devide (double a, double b)%7B%0A%09%09%09if (b==0) throw new ArithmeticException(%22devide by null error%22); %0A%09%09%09%09%0A%09%09%09else this.result=a/b;%0A%09%09%7D%0A%09%09%0A%09%09public void getResult (double result)%7B%0A%09%09%09System.out.println(result);%0A%09%09%7D %0A%7D

add Calculator.java