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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly