how to retrieve words based on user inputting letter from a TreeSet or TreeMap efficiently without delay ?? : **how to retrieve words based on user inputting letter from a TreeSet or TreeMap efficiently without delay ??** 
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..