从键盘输入的课程提示false
public void testListContains() {
Course course = coursesToSelect.get(0);
System.out.println("取课程" + course.name);
System.out.println("备选课程中是否包含课程:" + course.name + ", "
+ coursesToSelect.contains(course));
System.out.println("请输入课程名称:");
String name = console.next();
Course course2 = new Course();
course2.name = name;
System.out.println("备选课程中是否包含课程:" + course2.name + ", "
+ coursesToSelect.contains(course2));
}