added appendArray function

This commit is contained in:
Shekhar Gulati
2016-05-03 19:14:24 +05:30
parent 04aa5e0b36
commit 425f02bdc4
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -16,6 +16,10 @@ public interface Strman {
* @return full string
*/
static String append(final String value, final String... appends) throws IllegalArgumentException {
return appendArray(value, appends);
}
static String appendArray(String value, String[] appends) {
if (value == null) {
throw new IllegalArgumentException("'value' should be not null.");
}