aspose file tools*
The moose likes Beginning Java and the fly likes Can I invoke Class.forname for a Array object for e.g. Double [] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can I invoke Class.forname for a Array object for e.g. Double [] " Watch "Can I invoke Class.forname for a Array object for e.g. Double [] " New topic
Author

Can I invoke Class.forname for a Array object for e.g. Double []

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
Can I invoke Class.forname for a Array object for e.g. Double []
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36477
    
  16
Have you tried it? You can get a class object from any object by putting .getClass() after its identifier, then try getName(). Then try Class.forName().
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I invoke Class.forname for a Array object for e.g. Double []
 
Similar Threads
Object cast to Object[]
Reflection API - Method
Sorting arrays
Casting issue
Use 'String' as method name