public static void objectStringNonRecursive(@Unretained Object obj,StringBuilder sb){
  if (obj instanceof Object[]) {
    sb.append('(');
    boolean first=true;
    for (    Object o : (Object[])obj) {
      if (!first) {
        sb.append(',');
        sb.append(o);
      }
 else {
        first=false;
        objectStringWithBytes(o,sb);
      }
    }
    sb.append(')');
  }
 else {
    objectStringWithBytes(obj,sb);
  }
}

public static void objectStringNonRecursive ( @ Unretained Object obj , StringBuilder sb ) { if ( obj instanceof Object [ ] ) { sb . append ( '(' ) ; boolean first = true ; for ( Object o : ( Object [ ] ) obj ) { if ( ! first ) { sb . append ( ',' ) ; sb . append ( o ) ; } else { first = false ; objectStringWithBytes ( o , sb ) ; } } sb . append ( ')' ) ; } else { objectStringWithBytes ( obj , sb ) ; } }
get proper string for an an object including arrays with upto one dimension of arrays .
