java - How to fix Operator button bugs of my calculator app in android studio? -
when click operator buttons( +, -, *, / ) in calculator app made android studio, before putting number buttons, calculator closed, means putting number , putting operator okay. want nothing happens when click operator, before number clicked.
- case 1 : number buttons click -> operator button click working.
- case 2 : operator button click or equals button click closed.
i've created calculator app in android studio in there 4 buttons:
- add
- subtract
- multiply
- divide
i used decimal number representation , suppose if enter first no. 6.0 , second 5.0 , when click add gives 30.0 buttons not working.
please answer me fix this.
Comments
Post a Comment