if (argv.length == 0) {
System.err.println("Usage: ListMethods className");
return;
}
Class c = Class.forName(argv[0]);
Constructor[] cons = c.getConstructors();
printList("Constructors", cons);
Method[] meths = c.getMethods();
printList("Methods", meths);