Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you are trying to print array like this System.out.println(array). use for loop
Its not a hascode but an adress of Array in Heap where link is point and array is allocated
Glad I could help.
Thank you, exactly, I was trying to debug by using print.
Not totally sure what you are doing, but that sounds like you're getting the hashcode of the array.
https://stackoverflow.com/questions/409784/whats-the-simplest-way-to-print-a-java-array
If you're trying to debug by using
print
or similar methods on the array, that won't work. UseArrays.toString(arr)
instead to get the string representation of the array.Could anyone tell me why I'm getting an output of "[I@19dfb72a" when checking with an array of {1,2,3,4,5,6,7,8,9}?
I'm using the same solution as above.