Programming test in Java.