Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,671

    Re: Method Help?

    Are you trying to find a unique set of strings, or a unique set of characters within a single string?

    Currently it looks like you're trying to do the first. Also, you're returning the original...
  2. Replies
    8
    Views
    1,671

    Re: Method Help?

    Follow the last sentence:



    Hint: use the iterator of the the TreeMap and a while loop. You can keep the same collection, or place all items left into a new collection (e.g. a List or a Set).
  3. Replies
    8
    Views
    1,671

    Re: Method Help?

    hmm... I don't think a HashSet is the best way to do this. Rather, I would use a Map (preferably a TreeMap). Use characters as the key, and an integer counter of how many times that character...
Results 1 to 3 of 3