public static void main(String[] args) {
    Byte test = 3;
    Byte test2 = 3;
    Byte test3 = 3;
    
    Byte[] arr = { test , test2, test3};
    
    for(int i =0; i<arr.length; i++) {
        System.out.println(" test"+i+" " + arr[i] );
    }
    test = 1;
    test2 = 2;
    test3 = 4;
    
    System.out.println(" test " + test);
    System.out.println(" test2 " + test2);
    System.out.println(" test3 " + test3);
    
    for(int i =0; i<arr.length; i++) {
        System.out.println(" test"+i+" " + arr[i] );
    }
}
By entering byte variables into a byte array, I want to make the values โโof the variables change the same when the value of the array changes.
In C, I remember that I changed it using an address, but what method should I use to use it in Java?
 
     
    