Code example for Hashtable

Methods: containsKeygetkeys

	public static Class getClass(String plugin,String classname) throws ClassNotFoundException {
	  Enumeration e = tools.keys();
	  System.out.println("Looking for tool: " + plugin);
	  if(tools.containsKey(plugin)) {
	    AlienObjectTool tool = (AlienObjectTool)tools.get(plugin);
	    Plugin tp = tool.getPlugin();
	    System.out.println("Tool found loading class");
	    return tp.getBundle().loadClass(classname);
	  System.out.println("Not found tool");
	  throw new ClassNotFoundException(classname);
Connect your IDE to all the code out there  Get Codota for Java