http://java.sun.com/j2se/1.5.0/docs/api/java/util/Arrays.html
Apparently 1.5 doesn't support copyOfRange...
hmm I think this is doable--
import java.util.ArrayList;
public class MyArrays{
public static <T> T[] copyOfRange(T[] array, T[] emptyArray, int from, int size){
ArrayList<T> temp = new ArrayList<T>(0);
for(int i = from; i < size; i++){
temp.add(array[i]);
}
return temp.toArray(emptyArray);
}
public static void main(String... args){
String values[] = {"Tom", "Joe", "Sarah"};
String temp[] = {};
String result[] = MyArrays.<String>copyOfRange(values, temp, 1, values.length);
for(String element : result){
System.out.print(element + " ");
}
}
}