This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 38025
    
  22
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().
 
jQuery in Action, 2nd edition
 
subject: Can I invoke Class.forname for a Array object for e.g. Double []
 
Similar Threads
Sorting arrays
Casting issue
Use 'String' as method name
Object cast to Object[]
Reflection API - Method