Code example for Hashtable

0
import java.util.Comparator; 
 
// Modified from: http://www.javalobby.org/java/forums/t18345.html 
 
public class CustomClassLoader2 extends ClassLoader {
  private Hashtable classes = new Hashtable();
 
  public CustomClassLoader2 (){ 
    super(CustomClassLoader2.class.getClassLoader());
  } 
 
  public static Comparator<Class> ClassNameComparator = new Comparator<Class>() {
      public int compare(Class cls1, Class cls2) { 
        String className1 = cls1.getName(); 
        String className2 = cls2.getName(); 
        return className1.compareTo(className2); 
      } 
  }; 
 
  public static Comparator<Method> MethodNameComparator = new Comparator<Method>() {
      public int compare(Method m1, Method m2) {