|
Evaluation
|
Worthy of consideration.
Does it pass the "pulls its weight" test?
Untested:
static char[] concat(char[]... as) {
int len = 0;
for (char[] a : as) len += a.length;
char[] result = new char[len];
int j = 0;
for (char[] a : as) {
System.arraycopy(a, 0, result, i, a.length);
i += a.length;
}
return result;
}
Posted Date : 2006-06-13 16:54:33.0
|