Yes, you need your own method to compare the contents of your own class.
Type: Posts; User: Norm
Yes, you need your own method to compare the contents of your own class.
Sorry, I don't understand what you are saying?
What prints out when you execute the code?
I still think the code should say if it does not find a match instead of printing the same type of...
What prints out when you add the println() statements to the compare() method and execute the code?
Try some debugging. I debug by using the println() method to print out the values of variables as the code executes. Add some println() statements to the compare() method to see what values the...
Are you sure that there is always a match found in the loop?
What do the values of the 4 digits: 0 5 5 5 represent?
When I compile and execute the code, I get this output which is different...
What do the values of those 4 digits mean? What is the 0 and each 5?
Should the search loop determine that no match was found and print out a different message instead of always printing the same...
Can you explain what is wrong with the current output? What items are wrong?
If the current output and the desired output were put on lines one above the other, it would be easier to see what the...