package programmiermethoden_und_Werkzeuge; public class Taschenrechner { int addition(int a, int b) { return a + b; } int multiplikation(int a, int b) { return a * b; } int division(int a, int b) { return a / b; } int potenzieren(int a, int b) { int temp = 1; if(b == 0) { return 1; } for(int i = 0; i < b; i++) { temp = temp * a; } return temp; } boolean kleinerAls(int a, int b) { return a < b; } boolean groeßerAls(int a, int b) { return a > b; } boolean gleich(int a, int b) { return a == b; } }