Hi,

Given a fully qualified name to a set of classes, for example:
com.testing.ClassName1
com.testing.ClassName2

I was looking to go to a specific method existing in all these classes and print a specific line.
For example to setT() method in each class and a line like Time.sleep.

I know there can be a Java code written for that.
just checking on if using Reflection, this could be done.

For Example:-
I was trying this way:-
try {
Class c = Class.forName("com.testing.classname1");
Method m[] = c.getDeclaredMethods();
for (int i = 0; i < m.length; i++) {
if(m[i].toString().equals("setT")) { //need to display a line matching a regex... }
}

} catch (Throwable e) {
System.err.println(e);
}

Thanks for your help.