title: Porting Arrays.copyOfRange from Java 6 to Java 5
body: <p>I have some source code that I need to make runnable under Java 5. Unfortunetly that code uses <a href="http://download.oracle.com/javase/6/docs/api/java/util/Arrays.html#copyOfRange%28boolean%5B%5D,%20int,%20int%29" rel="nofollow">Arrays.copyOfRange</a> function which was only introduced in Java 6. What would be the most effective way to implement same utility using only Java 5 API?</p>