title: What is the best way to link individual element in an ArrayLists to another ArrayList in Java?
body: <pre><code>private ArrayList&lt;String&gt; professor = new ArrayList();
  private ArrayList&lt;String&gt; course = new ArrayList();
  private ArrayList&lt;String&gt; courseGroup = new ArrayList()
  </code></pre>
  
  <p>Professor Array list might contain:</p>
  
  <pre><code>["John","Dick","Harry"]
  </code></pre>
  
  <p>I want to link "John" to an ArrayList of courses that he might be teaching and in turn linking the course to an ArrayList of courseGroup as one course might have multiple classes. So it's like a record of what course Professor John is teaching and the course group he is assigned to.</p>