List of utility methods to do Array Print
String | printWithIndex(double[] arr) print With Index StringBuilder sb = new StringBuilder(); sb.append("["); for (int i = 0; i < arr.length; i++) { sb.append(i).append(":").append(arr[i]); if (i != arr.length - 1) { sb.append(", "); sb.append("]"); return sb.toString(); |
String | toPrintableString(final byte[] bytes) Same as calling toPrintableString(buffer, Integer.MAX_VALUE) . return toPrintableString(bytes, Integer.MAX_VALUE);
|