List of utility methods to do Array to String Convert
String | toString(Object obj) to String if (obj == null) { return ""; return obj.toString().trim(); |
String | toString(float[] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append(iArray[i]); if (i != (iArray.length - 1)) { ... |
String | toString(long[] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append(iArray[i]); if (i != (iArray.length - 1)) { ... |
String | toString(int[] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append(iArray[i]); if (i != (iArray.length - 1)) { ... |
String | toString(String[] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append("'").append(iArray[i]).append("'"); if (i != iArray.length - 1) { ... |
String | toString(String s) Returns the string, in single quotes, or "NULL". if (s == null) { return "NULL"; } else { return new StringBuilder(s.length() + 2).append("'").append(s) .append("'").toString(); |
String | toString(int[][] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append("["); for (int j = 0; j < iArray[i].length; j++) { ... |
String | toString(long[][] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append("["); for (int j = 0; j < iArray[i].length; j++) { ... |
String | toString(Object[] obj) to String if (obj == null) { return "NULL"; StringBuilder tmp = new StringBuilder(); tmp.append("["); for (int i = 0; i < obj.length; i++) { tmp.append(obj[i].toString()); if (i != obj.length - 1) { ... |
String | toString(float[] iArray) to String if (iArray == null) { return "NULL"; StringBuilder buffer = new StringBuilder(); buffer.append("["); for (int i = 0; i < iArray.length; i++) { buffer.append(iArray[i]); if (i != (iArray.length - 1)) { ... |