Here you can find the source of shift(Object a[], int count)
public static void shift(Object a[], int count)
//package com.java2s; //License from project: Open Source License public class Main { public static void shift(Object a[], int count) { if (count > 0) System.arraycopy(((Object) (a)), 0, ((Object) (a)), count, a.length - count); else//from w w w . j a v a 2 s. com System.arraycopy(((Object) (a)), -count, ((Object) (a)), 0, a.length + count); } }