put arraylist in hashtable java code example
Example: put arraylist in hashtable java
List<String> newList = new ArrayList<String>();
newList.addAll(neighb);
data.put(words.get(i), newList);
newList.clear();
List<String> newList = new ArrayList<String>();
newList.addAll(neighb);
data.put(words.get(i), newList);
newList.clear();