I am getting confused why I can't use the statement to display the values in an array?
System.out.println(intarray);
This is the output '[I@7852e922'
If java is pass-by-value shouldnt that statement return the values of the array not the object reference. This is the fix im using.
System.out.println(Arrays.toString(intarray));