SABYASACHI S GUPTA wrote:
> Yup I figured that out ...
> but how do I do a typecast when I have the class name in a String
> variable during runtime. (I do NOT know the class name to typecast).
You don't really have to typecast. Just call your intended method via reflection:
ie: use Class.forName() to get your meta-class object (or obj.getClass() if you
have the object) and then try using
your_class.getMethod().invoke() - but you need to know your parameter classes.
Study the rflection specs in the documentation bundle (under the Features
section), it should help.
-- dimitris
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]