for (int i=0; i<classes.length; i++)
try {
Class c = Class.forName(classes[i]);
Method methods[] = c.getMethods();
for (int m = 0; m < methods.length; m++)
System.out.println(methods[m].toString());
} catch (ClassNotFoundException e) {
System.err.println("Error: Class " +
classes[i] + " not found!");
} catch (Exception e) {
System.err.println(e);
}