List of utility methods to do Array to List Convert
String | getList(int[] s, String separator, String quote) Builds a CSV list from the specified int[], separator String and quote String .
int len = s.length; StringBuffer sb = new StringBuffer(len * 8); for (int i = 0; i < len; i++) { sb.append(quote); sb.append(s[i]); sb.append(quote); if (i + 1 < len) { sb.append(separator); ... |
String | getList(String[] s, String separator, String quote) Builds a CSV list from the specified String[], separator string and quote string. int len = s.length; StringBuffer sb = new StringBuffer(len * 16); for (int i = 0; i < len; i++) { sb.append(quote); sb.append(s[i]); sb.append(quote); if (i + 1 < len) { sb.append(separator); ... |
String | getList(String[][] s, String separator, String quote) Builds a CSV list from the specified String[][], separator string and quote string. int len = s.length; StringBuffer sb = new StringBuffer(len * 16); for (int i = 0; i < len; i++) { sb.append(quote); sb.append(s[i][0]); sb.append(quote); if (i + 1 < len) { sb.append(separator); ... |