Skip to content

Instantly share code, notes, and snippets.

@potfur
Created September 2, 2015 08:53
Show Gist options
  • Save potfur/5fb1d91e9a7ac94aa95e to your computer and use it in GitHub Desktop.
Save potfur/5fb1d91e9a7ac94aa95e to your computer and use it in GitHub Desktop.
Pure OOP
public Integer max(Integer a, Integer b) {
return new If(
new GreaterThan(a, b),
a, b
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment