Update course.java

Done without equals