Here you can find the source of shiftLeftByOne(int[] table)
private static void shiftLeftByOne(int[] table)
//package com.java2s; //License from project: Open Source License public class Main { private static void shiftLeftByOne(int[] table) { int firstElement = table[0]; for (int index = 0; index < table.length - 1; index++) { table[index] = table[index + 1]; }//from w w w . j av a2 s . c o m table[table.length - 1] = firstElement; } }