I am trying to invoke a method dynamically. I need a Class[] of args to get
the Method object with a specific signature. My question is if one of my
arguments is a native data type and I don't know this in advance how do I:
A. determine the data type of a passed argument
and
B. create a Class object for a native data type.
Class[] classArray = new Class[args.length];
for (int i = 0; i < args.length; i++) {
classArray[i] = args[i].getClass();
}