Programming assignments in Java