![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e84. Shifting Elements in an Array// Shift all elements right by one System.arraycopy(array, 0, array, 1, array.length-1); // Shift all elements left by one System.arraycopy(array, 1, array, 0, array.length-1);
© 2002 Addison-Wesley. |