Skip to the content.

Problem Statement

Given an enum-class ExampleEnum consisting of 100 constants, store 1 000 000 pseudo-random constants in an immutable collection.

Experiment with the following:

Solutions

The experiments, as solutions to the problem statement, with comparable results.

Experiment 1: Java’s List.of()