You need to do some debugging to find out where in your code you are not updating or setting the count variable correctly. Add a println after EVERY place that you change the value of the count...
Type: Posts; User: Norm
You need to do some debugging to find out where in your code you are not updating or setting the count variable correctly. Add a println after EVERY place that you change the value of the count...
Can you copy and paste here the console from when you execute the program.
Add comments to show where it is NOT displaying.
To copy the contents of the command prompt window:
Click on Icon in...
I don't understand how it "sometimes" does not work.
Computer programs do the same thing every time. Its the input that is different.
Can you copy and paste here the console from when you execute...