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.
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
It is not a double array. It is
array[key]
construct, where the array content is'silver' => 10, 'gold' => 5, null => 20
and the key that is accessed is the result of@$bands[3]
.@damiansakwinski
Glad I could help.
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.