Some java beginner exercises.