|
-
Jan 26th, 2005, 09:57 AM
#1
Thread Starter
Lively Member
Error Creating ArrayLists
public class Arrays
{
public static void main (String args[])
{
ArrayList arr = new ArrayList();
int x = 0;
int y = 1;
if (x != arr.length())
{
arr[x] = y;
y = y + 1;
x = x + 1;
}
}
}
The error I get is:
"Cannot resolve symbol class arraylist"
Can someone suggest a fix? Thanks !
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
|