All pastes #717451 Raw Edit

Meins

public java v1 · immutable
#717451 ·published 2007-09-27 17:15 UTC
rendered paste body
public 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;	}}