Am I using the compareTo method properly
<p>I am stuck on the following question:</p>

<blockquote>
  <p>Study the following Java class header and code fragment:</p>

<pre><code>class ExamScript implements Comparable&lt;ExamScript&gt;
{
    private String studentName;
    private int mark;
    ...rest of class...

    /**
      * Compares this object with the specified object for e
      *@param e the object to be compared
      *@return -1 if object is less than the specified object
      *@return 0 if object is equal to the specfied object
     **/
       public int compareTo(ExamScript e)
       {
         if (mark &lt; e.mark)
             return - 1;
         if (mark == e.mark)
             return 0;
         return 1;
       }
}
</code></pre>
  
  <p>Give suitable documentation for the <code>compareTo</code> method. In particular state the meaning of the values returned from this method.</p>
  
  <p>Write the code for the <code>compareTo</code> method according to your specification.</p>
</blockquote>

<p>I've documented and written the code as shown above. Can anyone confirm for me if I can improve my documentation/coding a bit or if that is fine the way it is?</p>
