Java is very verbose. Therefore many people have come up with calls to do very common things. For example:
This prints the contents of the array, instead of a cryptic string. This method is available since 1.5.
Another good one is:
Usually used in a finally clause, this one closes streams or readers, ignore IOExceptions, and handles null. This is available in the Apache commons-io library.