Hash Flashcards
1
Q
When adding all elements from an array to a hash? Why can’t you use the hash.addAll function?
A
Because it treats the primitive array as one big object. To add everything from an array to a hash, you must use a typical for loop iterator.