My solutions to (common) interview-like questions in Java.