title: create new object in arraylist with attributes
body: <p>I am new to Java and I am starting to work with <code>ArrayLists</code>.  What I am trying to do is create an <code>ArrayList</code> for students.  Each student has different attribute associated with them (<code>name, id</code>).  I am trying to figure out how to add a new student object with this attributes. Here is what I have:</p>
  
  <pre><code>ArrayList &lt; Student &gt; studentArray;
  public Student(String name, int id) {
    this.fname = name;
    this.stId = id;
  }
  public Stromg getName() {
    return fname;
  }
  public int getId() {
    return stId;
  }
  public boolean setName(String name) {
    this.fname = name;
    return true;
  }
  public boolean setIdNum(int id) {
    this.stId = id;
    return true;
  }
  </code></pre>