convert Object Array to String in java examples
How to convert Object Array to String in java examples
public static String arrayToString(Object[] a, String separator) {
String result = "";
if (a.length > 0) {
result = a[0].toString(); // start with the first element
for (int i=1; i
result = result + separator + a[i];
}
}
return result;
}
public static String arrayToString(Object[] a, String separator) {
String result = "";
if (a.length > 0) {
result = a[0].toString(); // start with the first element
for (int i=1; i
result = result + separator + a[i];
}
}
return result;
}
Comments
Post a Comment