I need to create phone book kind of thing. It contains name & number. Now when I type letters matching list should be returned. For the example given below, when I type
This calls for a Trie data structure. See this question for java implementations. I used this one.