How can I determine if a Class is an array of anything?

I found some code that says String[].class.getName();

so I can get the name of a String[] array, but what about finding out if anything is an array of anything?

publicboolean isArray (Class c){

String cName = c.getName();

// Then what?

}

Basically I want to test if it's an array of simple type (int[], float[], char[], etc)

[520 byte] By [smiles78a] at [2007-11-26 20:39:02]
# 1
Check out some of the methods in java.lang.Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.htmlIn particular: isArray(), getComponentType() and isPrimitive().
DrLaszloJamfa at 2007-7-10 1:56:19 > top of Java-index,Java Essentials,Java Programming...