Here you can find the source of shiftLeft(Object[] array, int amount)
public static void shiftLeft(Object[] array, int amount)
//package com.java2s; //License from project: Open Source License public class Main { public static void shiftLeft(Object[] array, int amount) { Object[] temp = array.clone(); for (int i = 0; i < array.length; i++) { array[(i - amount + array.length) % array.length] = temp[i]; }/* w w w . ja v a 2 s . c o m*/ } }