com.urbanairship.api.common.CSVUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
package com.urbanairship.api.common;
public class CSVUtils {
/**
* Formats an array of strings as a single CSV row.
*
* @param columns Array of strings representing the columns of the CSV row.
* @return A formatted CSV row as a String.
*/
public static String formatRowForCSV(String[] columns) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < columns.length; i++) {
if (i > 0) {
sb.append(",");
}
String column = columns[i];
sb.append(column);
}
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy