title: Java override Object equals() method
body: <p>How do I override the equals method in the object class?</p>
  
  <p>i.e I have</p>
  
  <pre><code>class Person{
  
  //need to override here
  public boolean equals (Object obj){
  
  }
  </code></pre>
  
  <p>I want to convert the parameter obj to a type Person, but if I do (Person) obj it won't work.</p>