src/org/kocakosm/pitaya/util/Classes.java
public static String getQualifiedName(Class<?> c)
	{
		if (c.isArray()) {
			StringBuilder qname = new StringBuilder();
			while (c.isArray()) {
				c = c.getComponentType();
				qname.append("[]");
			}
			qname.insert(0, c.getName());
			return qname.toString();
		}
		return c.getName();
	}
public static String getQualifiedName(Class<?> c)
	{
		if (c.isArray()) {
			StringBuilder qname = new StringBuilder();
			while (c.isArray()) {
				c = c.getComponentType();
				qname.append("[]");
			}
			qname.insert(0, c.getName());
			return qname.toString();
		}
		return c.getName();
	}
Returns the qualified name of the given class (package name followed
by a dot, followed by the class name). For array classes, this method
returns the component type class name followed by as many "[]" as
the array's dimension.

@param c the class.

@return the qualified name of the given class.

@throws NullPointerException if {@code c} is {@code null}.