So, I have an array of java.lang.Object. I want to point out which ones are wrappers (i.e. Boolean, Byte, Character, Short, Integer, Long, Float, and Double (Not the primitives which have lower-case / shorter names!)). Correct me if I am wrong, but I think that I just use
Object.getClass().isPrimitive()
So now I need to use those classes, and convert them to primitives, i.e. Float-float, Integer-int.
for(int j = 0; j < arguments.length; j++) {
if(arguments[j].getClass().isPrimitive())
types[j] = //Then I want to put the primitive-inated version here.
}
How?