title: JAva beginner having trouble writing a method to get cost
body: <p>//create a method called costOfRecordCollection that will return the cost of all the CDs in the ArrayList</p>
  
  <p>hi, i'm stumped on the above method at the moment (new to java programming) - this is what i've written so far but don't know if i'm on the right track.  any assistance/direction appreciated.  Pieter.</p>
  
  <pre><code>public void setcostofRecordCollection(String cost) {
      cost = cost;
  }
  
  public int getcostofRecordCollection() {
      return cost();
  }
  </code></pre>