Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    13
    Views
    1,242

    Re: Problem with method

    Yes, you need your own method to compare the contents of your own class.
  2. Replies
    13
    Views
    1,242

    Re: Problem with method

    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...
  3. Replies
    13
    Views
    1,242

    Re: Problem with method

    What prints out when you add the println() statements to the compare() method and execute the code?
  4. Replies
    13
    Views
    1,242

    Re: Problem with method

    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...
  5. Replies
    13
    Views
    1,242

    Re: Problem with method

    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...
  6. Replies
    13
    Views
    1,242

    Re: Problem with method

    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...
  7. Replies
    13
    Views
    1,242

    Re: Problem with method

    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...
Results 1 to 7 of 7