The following code is for a java calculator program. The code compiles, but I can't get the backspace button to work.
This is the code that calls for the backspace function:
op1 = (lcd.getText().length() - 1);
The code for the calculator is attached. Any insight on how to get the backspace to work?