File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


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: 39045
    
  23
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().
 
Consider Paul's rocket mass heater.
 
subject: Can I invoke Class.forname for a Array object for e.g. Double []