Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    11,215

    Re: treemap Duplicates

    I am not fully sure what you wish to do but I'll guess that you want to store data that represents a person (name, height, weight, etc...). So you could write an object (call it say Person), that...
  2. Replies
    3
    Views
    11,215

    Re: treemap Duplicates

    The Map interface does not allow duplicate keys...as per the API:

    There may be ways to achieve the behavior you want, such as storing Lists in your TreeMap rather than the String
Results 1 to 2 of 2