There are 2 easy ways to get better output:

Arrays.asList(theArray).toString();

or

org.jcoderz.commons.util.ArraysUtil.toString(theArray);

The 2nd way takes care for null and returns the string "null" in this case. The 1st solution would through a nullpointer exception.