Class c = Class.forName("java.util.Date");
Date d = (Date)c.newInstance();
System.out.println("Today is " + d);
System.out.println("d is of class " + c.getName());
Method[] methods = c.getMethods();
// Just print the first few to avoid filling the screen.
for (int i=0; i<10; i++)
System.out.println(methods[i].toString());