Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    11
    Views
    2,122

    Re: Java SetsAndMaps.java

    I don't understand what that means, can you explain? A Map can have more than one key.

    What are the steps the code needs to take to make that decision?
  2. Replies
    11
    Views
    2,122

    Re: Java SetsAndMaps.java

    Can you give an example of what you mean?

    You should use the equals() method to compare Strings, not the == operator.
  3. Replies
    11
    Views
    2,122

    Re: Java SetsAndMaps.java

    == compares reference pointers and primitives.
    equals() compares the contents of objects.

    Edit your post and wrap your code with
    <YOUR CODE HERE> to get highlighting. It will look like this:
    ...
  4. Replies
    11
    Views
    2,122

    Re: Java SetsAndMaps.java

    Please edit your post, format the code and wrap the code in code tags to preserve its formatting. Also get rid of the extra blank lines.

    One problem with the code is that it uses == to compare...
  5. Replies
    11
    Views
    2,122

    Re: Java SetsAndMaps.java

    Please edit your post and wrap the code in code tags to preserve its formatting.

    Can you explain your problem and/or ask a specific java programming question?
    Show the programs output and explain...
Results 1 to 5 of 5