Skip to content

Instantly share code, notes, and snippets.

@jmace01
jmace01 / Test.java
Created September 7, 2017 05:56
Sample of simulating an IF/ELSE without using any conditionals, loops, etc.
import java.io.*;
class Test
{
public static void main(String args[])
{
int a = 1;
IIF.branch(
a % 2 == 0,
() -> System.out.println("A"),