import java.lang.reflect.Constructor; /** * An attempt to figure out the "class" associated with primitive types. */ public class Agh { public Agh(int i, float f, double d) { } // Agh(int, float, double) public static void main(String[] args) { Constructor cons = Agh.class.getConstructors()[0]; Class[] params = cons.getParameterTypes(); Class[] foo = new Class[]{ int.class,float.class }; for (int i = 0; i < params.length; i++) { System.err.println("param[i]: " + params[i].toString()); } // for } // main(String[]) } // class Agh