[Bluej-discuss] Ex 4.51
John Simonds
simonj2 at sage.edu
Wed Oct 4 18:38:55 BST 2006
I have the following code for the for each in exercise 4.51:
public void listNotes( )
{
index = 0;
for(int index : index ++) {
System.out.println(notes.get(index));
}
}
This results in an error. I am not understanding why it doesn't see index as a variable.
John Simonds
Systems Technologist
simonj2 at sage.edu
(518)244-3111
(518)292-1734
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20061004/09a51f43/attachment.html
More information about the bluej-discuss
mailing list