title: Primitive type classes (java)
body: <p>I would like to get an Array of Classes corresponding to the classes of an Array of Objects. I wrote this code:</p>
  <pre><code>Object[] parameters = new Object[]{...};
  
  Class[] classes = new Class[parameters.length];
  for(int i = 0; i &lt; parameters.length; i++){
    classes[i] = parameters[i].getClass();
  }
  </code></pre>
  <p>However, I need primitive types such as int or float writen as <em>float.class</em> or <em>int.class</em>
  would do, but I instead get <em>java.lang.Float</em> or <em>java.lang.Integrer</em>. Is there anything I could do?</p>