import java.util.*;
public class LeftShiftedArray{
public static void main(String args[]){
int arr [] = {1,2,3,4,5,6,7,8};
if(arr.length > 1){
int startElement = arr[0];
for(int i=1; i<arr.length; i++){
arr[i-1] = arr[i];
}
arr[arr.length-1] = startElement;
}
System.out.println(Arrays.toString(arr));
}
}