12345678910111213141516171819202122232425 |
- /**
- * ClassName: Test07
- * Package: PACKAGE_NAME
- * Description:
- *
- * @Author 爱扣钉-陈晨
- * @Create 2023/9/24 14:16
- * @Version 1.0
- */
- public class Test08 {
- public static void main(String[] args) {
- int[] arr1 = new int[3]; //0x1122
- int[] arr2 = new int[3]; //0x1133
- arr2[0] = 100; //0x1133[0] = 100
- arr2[2] = 200; //0x1133[2] = 200
- arr1 = arr2; //0x1133
- System.out.println(arr1[0]); //? 0x1133[0] 100
- System.out.println(arr1[1]); //? 0x1133[1] 0
- System.out.println(arr1[2]); //? 0x1133[2] 200
- }
- }
|