Public feed #377505

Something

public text v1 · immutable
Raw Edit
·published 2007-03-01 20:30 UTC
rendered paste body
public static char[] substring(int start, int stop, char[] oldArr) {

char[] newArr = new char[(stop - start) + 1];

int i = 0;

for(int x = start; x <= stop; x++) {

newArr[i] = oldArr[x];

i++;

}

return newArr;

}