tk.hongkailiu.test.app.junit.MyConcatenator Maven / Gradle / Ivy
The newest version!
package tk.hongkailiu.test.app.junit;
/**
* Created by hongkailiu on 2015-04-12.
*/
public class MyConcatenator {
public static String concatenate(String... strings) {
StringBuilder builder = new StringBuilder();
for (int i = 0; i < strings.length; i++) {
if (i > 0) {
builder.append(",");
}
builder.append(strings[i]);
}
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy