I would like to create a dictionary containing about 10 000 word pairs in Java, but I don't know what data structure I should use. If I have a word in my dictionary, for example because, I would like to the program find it if I search for only bec. If I have a phrase like the end I would like to find it if I search for th or en.
I tried ArrayList, but search is pretty slow. I don't want to use classes that implement the Map interface because they can only store one value for one key, so I can't search as described above.
This answer list some data structures for dictionaries, but I don't think they are the best for me: Best data structure for implementing a dictionary?
 
     
     
     
    