Given an enum-class
ExampleEnumconsisting of 100 constants, store 1 000 000 pseudo-random constants in an immutable collection.Experiment with the following:
- Instantiation of the collection
- Storing the collection
- Check if Collection contains the given element
- Retrieving an entry at index
- Loop/Iterate though the collection
The experiments, as solutions to the problem statement, with comparable results.