/** Displays the calculator GUI with the given amount of inputs (1 or 2). */ public void showCalculator(int operator, int numOfInputs) { if (animate) { if (numOfInputs == 2) gui.showLeftInput(); else gui.hideLeftInput(); gui.reset(); gui.setOperator(operators[operator]); gui.showCalculator(); } }