title: public static boolean Equals Method
body: <p>I have to objects.
  Student and Course (both of which have this static equals method)
  I also have the driver which my professor wrote and I have been told not to touch.
  My goal is to make two arraylists of courses taken by the student, and current courses the student is taking. </p>
  
  <p>My professor gave me all of the methods, I am supposed to fill in the bodies.</p>
  
  <p>I double checked, and the equals method is copied exactly as he wants it to be.</p>
  
  <p>This is a homework problem.</p>
  
  <p>I need to fill in the body of this equals method.
  I have tried things like if(this.id == other.getID()) but I keep on receiving this error:
  error: non-static variable id cannot be referenced from a static context</p>
  
  <p>I have tried using this.getID() instead but to no avail. I think this probably has something to do with this being static. (I am not allowed to change that.)</p>
  
  <p>What is the correct way to go about writing this? I am not going to include all of the getters and setters in the below code.</p>
  
  <pre><code>public class Student {
  
  private String id;
  private String firstName;
  private String lastName;
  private String major;
  private String minor;
  private ArrayList&lt;Course&gt; coursesTaken;
  private ArrayList&lt;Course&gt; currentSemesterCourses;
  private double gpa;
  
  /**
      Course constructor
  */
  public Student(String id, String firstName, String lastName, String major, String minor, ArrayList&lt;Course&gt; coursesTaken, ArrayList&lt;Course&gt; currentSemesterCourses) {
  /*Your code goes here */
      this.id = id;
      this.firstName = firstName;
      this.lastName = lastName;
      this.major = major;
      this.minor = minor;
      this.coursesTaken = coursesTaken;
      this.currentSemesterCourses = currentSemesterCourses;
  }
  
  
  public static boolean Equals(Object obj) {
  //Your code goes here   
  //base it on id firstName, lastName, major, minor and gpa
  }
  </code></pre>