Determine an objects type?

2006-03-30 Thread jonese
ok i'm creating some java objects and i'm passing them around. at some points in my coding i need to know what kind of object i'm getting. i know when i do a dump of an object the output says something like object of com.myobject.type. is there anyway i can get that same result by passing an

Re: Determine an objects type?

2006-03-30 Thread Barney Boisvert
object.getClass().getCanonicalName() cheers, barneyb On 3/30/06, jonese [EMAIL PROTECTED] wrote: ok i'm creating some java objects and i'm passing them around. at some points in my coding i need to know what kind of object i'm getting. i know when i do a dump of an object the output says