Can you add some comments to the delete method describing what the variables are used for and what logic it is using to do its task?
Some suggestions for easier testing and debugging:
Use...
Type: Posts; User: Norm
Can you add some comments to the delete method describing what the variables are used for and what logic it is using to do its task?
Some suggestions for easier testing and debugging:
Use...
Time to do some debugging to find out where and why there is an infinite loop.
Add lots of println statements to print out messages to show where the program is executing and what the values of...
Sorry, I meant for all the code needed for compiling and executed for testing be posted.
Please post the code you are having problems with here in the thread.
Be sure to wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.