Code example for Hashtable

0
 * 
 * @since 1.0 
 * 
 */ 
public class SimpleReadListener implements ReadListener { 
    private Map<String, LinkedList<String>> dics = new Hashtable<String, LinkedList<String>>();
    private LinkedList<String> sortedWords;
 
    public boolean onFileBegin(String file) {
        if (!file.endsWith(".dic")) {
            return false; 
        } 
        sortedWords = new LinkedList<String>();
        return true; 
    } 
 
    public void onFileEnd(String file) {
        String name = file.substring(0, file.length() - 4);
        dics.put(name, sortedWords);
    } 
Connect your IDE to all the code out there  Get Codota for Java