Meins
public java v1 · immutablepublic class MyCalculationTest {public static void main(String [] args) { MyCalculation calculatorObject = new MyCalculation(); int result = calculatorObject.getResult(); System.out.println("Your result is: " + result); }}public class MyCalculation { int value = 50; int anotherValue = 70; /** * Calculates the result * * @return the result of this method */ public int getResult() { value = (value + anotherValue)/40 + 8; int result = value % 4; return result; }}