public class ShiftArray { public static void main(String[] args) { double[] myList = { 1, 4, 9, 3, 7, 5, 6}; // Shift array one position to left double temp = myList[0]; // Save myList[0] in temp for ( int i = 1; i < myList.length; i++ ) myList[i-1] = myList[i]; myList[myList.length-1] = temp; // temp contains myList[0] } }