Various coding task in Java.