View Problem

Perform different actions depending on several boolean conditions (IF .. THEN .. ELSIF .. ELSE)

ExpandDiskEdit
java
if (age > 84) System.out.println("You are really ancient");
else if (age > 30) System.out.println("You are middle-aged");
else System.out.println("You are young");

Submit a new solution for java
There are 21 other solutions in additional languages (clojure, cpp, csharp, erlang ...)