public class Test2 {

     public static void main(String[] args) {
int[] arr=new int[5];
arr[0]=10;
arr[1]=20; change(arr);
System.out.println("5:"+arr[0]);//
System.out.println("6:"+arr[1]);//
System.out.println("7:"+arr[2]);//
System.out.println("8:"+arr[3]);//
System.out.println("9:"+arr[4]);//
}
public static void change(int[] arr){
arr[1]=30;
arr[2]=89;
arr=new int[5];
arr[0]=300;
arr[1]=900;
arr[2]=87;
arr[3]=67;
arr[4]=74;
System.out.println("0:"+arr[0]);//
System.out.println("1:"+arr[1]);//
System.out.println("2:"+arr[2]);//
System.out.println("3:"+arr[3]);//
System.out.println("4:"+arr[4]);//
} }