public void listNotes()
{
int index = 0; //could do this ....int indexB = notes.size();
while(index < notes.size()){
System.out.println(notes.get(index));
index++;
}
}
Does anybody know how to alter this code so that when it displays in the terminal window it will come up with the index number besides the note accompanying that specific note number??..i know at the moment only the note will print out but no index number..i tried to alter the code so it read
public void listNotes()
{
int index = 0; //could do this ....int indexB = notes.size();
while(index < notes.size()){
System.out.println(index+":")(notes.get(index));
index++;
}
}
but i just keep getting error messages with this??
Thanks.
Felissa