Independent exercises with Java