This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 44041
    
  33
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can I invoke Class.forname for a Array object for e.g. Double []
 
It's not a secret anymore!