@@ -0,0 +1,959 @@
+import java.util.Hashtable;%0Aimport java.util.*;%0A%0Apublic class words%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09String a = %22aab%22;%0A%09%09Hashtable%3CCharacter, Integer%3E b = fx(a);%0A%09%09System.out.println(b);%0A%09%7D%0A%0A%09public static Hashtable%3CCharacter, Integer%3E fx(String a)%7B%0A%09%09//create a hashtable%0A%09%09Hashtable%3CCharacter, Integer%3E data = new Hashtable%3CCharacter, Integer%3E();%0A%09%09%0A%09%09//populates the hashtable with (key, value)=(character, repetition time)%0A%09%09for(int i=0; i%3Ca.length(); i++)%7B%0A%09%09%09if(data.get(a.charAt(i)) != null)%7B%0A%09%09%09%09data.put(a.charAt(i), data.get(a.charAt(i))+1);%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09data.put(a.charAt(i), 1);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09//Gets all the keys of the hashtable%0A%09%09Set keys = data.keySet();%0A%09%09%0A%09%09//iterate through the hashatble and remove the elements have value%3C=1%0A%09%09for(Iterator i = keys.iterator(); i.hasNext();)%0A%09%09%7B%0A%09%09%09//char temp =(Character) i.next();%0A%09%09%09if(data.get(i.next()) %3C= 1)%7B%0A%09%09%09%09i.remove();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09//returns the hashatble%0A%09%09return data;%0A%09%7D%0A%7D%0A

Create words.java