For programming contest in Java