title: How do to know Field is an array? (java.lang.reflect.Field) in Java
body: <p>I have array from Field:</p>
  
  <pre><code>Field[] fields = instance.getClass().getDeclaredFields();
  
  for (Field field : fields){    
  
  if((field.getType() == Integer.class[])||(field.getType() == Object.class[]))
  {
  //...    
  } 
  
  }
  </code></pre>
  
  <p>How do to learn Field is array? (how to know which field is an array (Object[] array)?), Help me, please.</p>