title: Adding a toString method to a linked list
body: <p>I have created a linked list class to make a simple register, where I can add and remove students from a list. However I am not sure how to create my toString method for a linked list, what is the best way of going about this? 
  Thanks in advance!</p>
  
  <pre><code>import java.util.*;
  public class Registry {
  
  
  LinkedList&lt;Student&gt; studentList
          = new LinkedList&lt;Student&gt;();
  //setting my type parameter
  
  
  
  
  public Registry() {}
  
  
  public void addStudent(Student aStudent) {}
  
  
  public void deleteStudent(int studentID) {}
  
  
  public String toString(){}
  
  
  
  
  public String format() {}
  
  
  }
  </code></pre>