import java.util.Arrays;
public class Demo {
public static void main(String[] args) {
int[]array=new int[]{00,22,55,388,32,14};
System.out.println("原数组:");
for(int i=0;i<array.length;i++){
System.out.print(array[i]+" ");
}
System.out.println();
for(int i=array.length-1;i>0;i--){
array[i]=array[i-1];
}
for(int i=0;i<array.length;i++){
System.out.print(array[i]+" ");
}
public class Demo {
public static void main(String[] args) {
int[]array=new int[]{00,22,55,388,32,14};
System.out.println("原数组:");
for(int i=0;i<array.length;i++){
System.out.print(array[i]+" ");
}
System.out.println();
for(int i=array.length-1;i>0;i--){
array[i]=array[i-1];
}
for(int i=0;i<array.length;i++){
System.out.print(array[i]+" ");
}