Java Utililty Methods Object Value Of

List of utility methods to do Object Value Of

Description

The list of methods to do Object Value Of are organized into topic(s).

Method

StringvalueOf(Object[] oarray)
Formats an array of objects into a String suitable for output (logging, etc.).
StringBuffer sbuf = new StringBuffer("{ ");
for (int i = 0; i < oarray.length; ++i) {
    String stringValue = oarray[i] == null ? "null" : oarray[i].toString();
    stringValue = trimToLength(stringValue);
    if (i > 0)
        sbuf.append(", ");
    sbuf.append(stringValue);
sbuf.append(" }");
return sbuf.toString();