david dabush wrote:thank you its working
Maybe it is, but have you asked yourself: Why do I need to know this?
It smacks to me of reflection which, as far as I'm concerned, is either
(a) a last resort
or
(b) suggests bad design
Java is
staticallly-typed and reflection is an aberration. Use it at your peril.
You have been warned.
Winston