question: public static void objectString ( Object obj , StringBuilder sb ) { if ( obj instanceof Object [ ] ) { sb . append ( '(' ) ; boolean first = true ; for ( Object o : ( Object [ ] ) obj ) { if ( ! first ) { sb . append ( ',' ) ; } else { first = false ; } objectString ( o , sb ) ; } sb . append ( ')' ) ; } else { objectStringWithBytes ( obj , sb ) ; } }
target:  Get proper string for an object including arrays. 