Android Utililty Methods Array to List Convert

List of utility methods to do Array to List Convert

Description

The list of methods to do Array to List Convert are organized into topic(s).

Method

StringgetList(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);
...
StringgetList(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);
...
StringgetList(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);
...