import java.util.*; public class WordReversals { public static void main (String[] argv) { // Fetch the dictionary. String[] words = WordTool.getDictionary (); // Compare a tree data structure with ArrayList and LinkedList. findReversalsUsingHashtable (words); findReversalsUsingTree (words); findReversalsUsingArrayList (words); findReversalsUsingLinkedList (words); } static void findReversalsUsingHashtable (String[] words) { // INSERT YOUR CODE HERE } static void findReversalsUsingTree (String[] words) { long startTime = System.currentTimeMillis(); // Count such words. int count = 0; // First put all words into a tree. TreeSet wordSet = new TreeSet (); for (int i=0; i