This is a collection of examples illustrating how one could program some simple arithmetic functions in Java, ranging from ugly to bad to good. The order from ugly to perfect is as follows:
- ugly
- terrible
- bad
- good
- better
- great
- perfect
Or was it the other way around? Anyways, happy April Fools' Day!
These also serve as examples in this post on Medium.