package ru.tsibrovskii.lesson1.Typedata;

public class Calculator {

    static double result;

    public void add(double first, double second) {
        result = first + second;
    }

    public void substruct(double first, double second) {
        result = first - second;
    }

    public void div(double first, double second) {
        result = first / second;
    }

    public void multiple(double first, double second) {
        result = first * second;
    }

}
package ru.tsibrovskii.lesson1.Typedata;

public class Calculator {

    static double result;

    public void Add(double first, double second) {
        result = first + second;
    }

    public void Substruct(double first, double second) {
        result = first - second;
    }

    public void Div(double first, double second) {
        result = first / second;
    }

    public void Multiple(double first, double second) {
        result = first * second;
    }

}
change methods