Quantcast
Channel: I'm having trouble getting operations working - Stack Overflow
Browsing index pages (2 articles)

I'm having trouble getting operations working

I'm a beginner and trying to make a simple calculator. i've searched for other answers but my problem is that after pressing the operator it's just keeps the first string onlypublic class...

View Article


Answer by Jorel Ali for I'm having trouble getting operations working

In your operations listener, the total is only initialized when C is pressed. Using this example of 3 + 5:When 3 is pressed, the number is entered into the area.When the + operation is pressed, the...

View Article

Browsing index pages (2 articles)


Latest Images