[Solved] I am trying to build a simple calculator [closed]
[ad_1] You could keep track of what your first number is, and check if it is zero, then do nothing. if(newValue == true) disp.setText(“0”); else { if (!firstNumber.equals(“0”) disp.setText(disp.getText().toString() + “0”); newValue = false; } [ad_2] solved I am trying to build a simple calculator [closed]