Adding to an ArrayList of a class object? : <pre><code>public static ArrayList&lt;Lecturer&gt; lecturers = new ArrayList&lt;Lecturer&gt;();
lecturers.add(Lecturer);

public Lecturer (String name, String id, String address, String email, String office, String phone_number, String research, Module mod){
    super(name, id, address, email, office, phone_number);
    this.research = research;
    this.mod = mod;
}
</code></pre>

<p>Hi all,
I have created a class and a constructor called Lecturer which stores details about Lecturers. I have also created an ArrayList of the type Lecturer which stores objects of lecturers. However, when I try to add to the list I keep getting the error " expected". I know there is something wrong with the "add(Lecturer)" part but I can't seem to figure out what else to write instead. Any help would be appreciated, thank you.</p>
