Various programming exercises using Java