Here you can find the source of shiftLeft1(T[] array)
public static <T> void shiftLeft1(T[] array)
//package com.java2s; /**/* www . ja va 2s . co m*/ * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author Jay Codec * */ public class Main { public static <T> void shiftLeft1(T[] array) { for (int i = 0; i < array.length - 1; i++) { array[i] = array[i + 1]; } array[array.length - 1] = null; } }