|
-
Jan 20th, 2005, 10:33 AM
#1
Thread Starter
Lively Member
Error: cannot resolve symbol
This error occurs in the following code:
public class example {
public static void main(String[] args) {
ArrayList list = new ArrayList();
for (int i = 0; i < 4; i++)
{
list.add (new Integer (i*i));
System.out.println (list.get(i));
}
}
}
Does anyone have any suggestions how to print the elements in the arraylist? The error I get is
"cannot resolve symbol class ArrayList"
TIA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|