title: How would i rename a list item in an array?
body: <p>Basically, im trying to be able to rename a list item from an array list. The typical <code>arrayList.set(index, "something")</code> doesn't help a lot in my case as i'm using a class like this...</p>
  
  <pre><code>public class Song {
  
  private long id;
  private String title;
  private String artist;
  
  public Song(long songID, String songTitle, String songArtist) {
      id=songID;
      title=songTitle;
      artist=songArtist;
  }
  
  public long getID(){return id;}
  public String getTitle(){return title;}
  public String getArtist(){return artist;}
  </code></pre>
  
  <p>}</p>
  
  <p>So i'm guessing the second parameter of the <code>arrayList.set</code> method has to be associated with this class, and i'm unsure as to how i would do this. For example, if i wanted to change the title, would i use something like <code>arrayList.set(index, Song(null, newTitle, null)</code>?</p>