@@ -0,0 +1,994 @@
+package ru.pravvich;%0A/**%0A*Implements Calculate. %0A*Supports repeated using previous calculation.%0A*/%0Apublic class Calculate %7B%0A%09double resoult;%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%0A%09%7D%0A%09%0A%0A/**%0A*The add operations.%0A*@param first - first argument, second - second argument%0A*/ %0A%0A%09public void add(double first, double second) %7B%0A%09this.resoult = first + second;%0A%09%0A%09%7D%0A%0A%0A/**%0A*substract operation.%09%0A*@param first - first argument, second - second argument%0A*/ %0A%0A%09public void substract(double first, double second) %7B%0A%09this.resoult = first - second;%0A%09%0A%09%7D%0A%0A%0A/**%0A*Mult operation.%0A*@param first - first argument, second - second argument%0A*/ %0A%0A%09public void mult(double first, double second) %7B%0A%09this.resoult = first * second;%0A%09%0A%09%7D%0A%0A%0A/**%0A*Division operation.%0A*@param first - first argument, second - second argument%0A*/ %0A%0A%09public void div(double first, double second) %7B%0A%09%0A%09if (second != 0) %7B%0A%09this.resoult = first / second;%0A%09%7D else %7B%0A%09%09System.out.println(%22%D0%94%D0%B5%D0%BB%D0%B8%D1%82%D1%8C %D0%BD%D0%B0 %D0%BD%D0%BE%D0%BB%D1%8C %D0%BD%D0%B5%D0%BB%D1%8C%D0%B7%C2%A4!%22);%0A%09%7D%0A%09%0A%09%7D%0A%0A//The and...%0A%0A%7D%0A%0A%0A%0A

add structure