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?
Type: Posts; User: Norm
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?
Can you give an example of what you mean?
You should use the equals() method to compare Strings, not the == operator.
== 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:
...
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...
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...