import java.util.Arrays;
public class TestDemo1{
public static int[] func(int []array){
for (int i = 0; i <array.length ; i++) {
array[i]=array[i]*2;
}return array;
}
public static void main(String[] args) {
int[]array=new int[]{2,3,4,5};
int[]ret=func(array);//打印数组中的元素
System.out.println(Arrays.toString(ret));
}
}