Java Basic Exercises.