This is the code I have so far:
Do I need to use a temporary variable in order to replace the tracks?
public void replaceImage(Image t, int index)
Image image = firstImage;
for(int i = 1; i <= index; i++)
image = image.getNext(); // finds image identified by the given index i.e. the one the user wants to replace
t.setNext(image.getNext()); //this and below replaces the references, well it should do
t.setImageName(t.getImageName()); // t is the track name that should overwrite image