This repo is inspired by 4 billon if statements and explores the max number of conditions that you can process in a single java file
This is not production code and thus was written with my feet.
You need Java 21 with preview features. Edit Generator.java with your prefered generation stategy.
# Generate OddOrEven.java with 1000 conditions
java --source 21 --enable-preview Generator.java 1000
# Run this incredible generated code
java --source 21 --enable-preview OddOrEven.java 98