haii
I have a problem while accessing a class(A) through "reflection" from class B....
i want to pass a parameter to class A...
My code is like this...
Method idMethod = Class.forName(ClassName).getMethod(FunctionName,null);
Method getMethod = Class.forName(ClassName).getMethod("getInstance", new Class[]{Class.forName("java.lang.String")});
Object object = getMethod.invoke(Class.forName(ClassName()),new Object[]{dboption});
lists = (ArrayList)idMethod.invoke(object,personId);
i will get correct result when the parameter is a String(Like above)...But how can i pass an Object ...