This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
hi: I want to use Class.getConstructor(Class paramType) method of the Class class. consider that I want to retrieve this consructor of the ArrayList class: new ArrayList(int initialValue) I have to supply a Class array of the types, in this case it is premitive. how can I construct a Class Object (not a wrraper object) of the premitive int. Using java.lang.Integer doesn't work. any suggestions.