Java Array Reference Code Output
In Java, you can use the Arrays.toString() method to print the reference of an array. Here is an example code:
int[] arr = {1, 2, 3, 4, 5};
System.out.println("数组的引用为:" + Arrays.toString(arr));
Running the above code will output: The reference of the array is: [1, 2, 3, 4, 5]. This allows you to print the reference of the array in string form to the console.