List of utility methods to do Array to String
String | encodedSeptetsToString(byte[] encodedSeptets) encoded Septets To String return unencodedSeptetsToString(encodedSeptetsToUnencodedSeptets(encodedSeptets));
|
String | getArrayAsString(double[] vals) Convert an array of doubles to semi-colon separated values NumberFormat f = NumberFormat.getInstance(); f.setGroupingUsed(false); String arrayString = ""; for (int i = 0; i < vals.length; i++) { arrayString += f.format(vals[i]) + ";"; return arrayString.trim(); |
String | intArrayToString(int[] array, String delim) int Array To String ArrayList list = new ArrayList(); for (int i = 0; i < array.length; i++) { list.add(new Integer(array[i])); return collectionToString(list, delim); |
String | intArrayToString(int[] itemsPerPagines) int Array To String String str = Arrays.toString(itemsPerPagines); return str.substring(1, str.length() - 1).replace(" ", ""); |
String | intArrayToString(Object array) Convert multidimensional array to readable String StringBuilder result = new StringBuilder(); if (array instanceof Object[]) { result.append(Arrays.deepToString((Object[]) array)); } else { result.append(Arrays.toString((int[]) array)); return result.toString(); |
String[] | intToString(int[] vectorIndex) int To String return Arrays.stream(vectorIndex).parallel().mapToObj(String::valueOf).toArray(String[]::new); |
String | permChangeToString(int[] permutation) perm Change To String return "permutated by " + Arrays.toString(permutation); |
String | stringify(int arr[]) stringify List<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < arr.length; i++) { list.add(arr[i]); return list.toString(); |
String | stringify(int[] raw) Turn an array of ints into a printable string. if (raw == null) { return "null"; StringBuffer buffer = new StringBuffer(); int count = raw.length; buffer.append("[ "); for (int i = 0; i < count; i++) { if (i > 0) { ... |
String | toDelimitedString(Object[] array, String delimiter) Returns the array's contents as a string, with each element delimited by the specified delimiter argument. if (array == null || array.length == 0) { return EMPTY_STRING; StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.length; i++) { if (i > 0) { sb.append(delimiter); sb.append(array[i]); return sb.toString(); |