title: How to determine if a field is of type char[] (char array) in Java?
body: <p>I'm dynamically instantiating an object through reflection, by matching fields names to like-named keys in a Map.  One of the fields is a character array (char[]):      </p>
  
  <pre><code>private char[] traceResponseStatus;
  </code></pre>
  
  <p>In the plinko iterator I have code for the types on the target class, eg.</p>
  
  <pre><code>Collection&lt;Field&gt; fields = EventUtil.getAllFields(MyClass.getClass()).values();
  for (Field field : fields)
  {
  Object value = aMap.get(field.getName());
  ...
      else if (Date.class.equals(fieldClass))
      {
  </code></pre>
  
  <p>where the <code>fieldClass</code>, for example, would be <code>Date</code></p>
  
  <pre><code>class MyClass
  {
      private Date foo;
  </code></pre>
  
  <p>What's the expression to test if the fieldClass type is a char[]?</p>