Skip to content

yluom/oddoreven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odd or even, the dumb way to learn things

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

Sorry

This is not production code and thus was written with my feet.

How to use

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 

About

Odd or Even, the dumb way to learn things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages