Skip to content

Chrimle/Enum-Collection-Experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

  • Instantiation of the collection
  • Storing the collection
  • Check if Collection contains the given element
  • Retrieving an entry at index
  • Loop/Iterate though the collection

Solutions

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

Experiment 1: Java's List.of()

Sponsor this project

 

Contributors 2

  •  
  •  

Languages