I want to store some elements in TreeMap or TreeSet and when user insert an alphabet based on that first word starts from that alphabet should be returned.
How to retrieve words based on user inputting letter from a TreeSet or TreeMap efficiently without delay?