MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toString

Method toString

Ports/CLDC11/src/java/util/Arrays.java:3439–3455  ·  view source on GitHub ↗
(boolean[] array)

Source from the content-addressed store, hash-verified

3437 ///
3438 /// 1.5
3439 public static String toString(boolean[] array) {
3440 if (array == null) {
3441 return "null"; //$NON-NLS-1$
3442 }
3443 if (array.length == 0) {
3444 return "[]"; //$NON-NLS-1$
3445 }
3446 StringBuffer sb = new StringBuffer(2 + array.length * 5);
3447 sb.append('[');
3448 sb.append(array[0]);
3449 for (int i = 1; i < array.length; i++) {
3450 sb.append(", "); //$NON-NLS-1$
3451 sb.append(array[i]);
3452 }
3453 sb.append(']');
3454 return sb.toString();
3455 }
3456
3457 /// Creates a `String` representation of the `byte[]` passed. The
3458 /// result is surrounded by brackets (`"[]"`), each element

Callers 4

requireMethod · 0.95
dumpMethod · 0.95
dumpMethod · 0.95
runMethod · 0.95

Calls 2

appendMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected