/* package whatever; // don't place package name! */
 
/* The class name doesn't have to be Main, as long as the class is not public. */
class Main
{
  public static void main (String[] args) throws java.lang.Exception
  {
     int[] a = new int[] { 1, 2, 3 };
     method(a);
     Class ofArray = a.getClass().getComponentType();
     System.out.println(ofArray);     
  }
  
  public static void method(Object o) {
    Class ofArray = o.getClass().getComponentType();
    System.out.println(ofArray);
}
}