Okay, thank you for you help. I will try and fix it from here.
Type: Posts; User: krowley
Okay, thank you for you help. I will try and fix it from here.
finalNumber at start: 0.
placeValue:
1
10
100
1000
10000
100000
1000000
10000000
0
0
0
0
0
0
0
0
0
-589934592
Well, in BlueJ there is a built in debugger. And the thing is that when I press 8 I get the number -58993459 for the value of finalNumber, while 8 the number is located at [0] in the array.
I have already debugged the code. The code is literally perfect until the final steps. However, when the index 0, the variable become a weird number. finalNumber becomes 41600409 and placeValue...
The code is executed in BlueJ. When you create a class in BlueJ, it allows you to open it without that-- I think. There really isn't much of a problem with the Calculator and the UserInterface...
The actual numbers in-putted. This whole point of my project is to create a simple calculator. I should be able to input the number 123 and actually get 123. I have buttons that are used with action...
When I press 9 I get: 41006540
8:-58993459
7:-158993459
6:170503270
5:70503270
4:-29496729
3:-129496729
2:200000000
1:100000000
0:0
Okay. I am new. Thank you!
I need help with my getDisplayValue() method. I am trying to iterate though an Array to display a value in a calculator, but I doesn't work. I keep on getting these weird magical numbers at the end...