aspose file tools
The moose likes Beginning Java and the fly likes Problem with ArrayList not being recognized Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Problem with ArrayList not being recognized" Watch "Problem with ArrayList not being recognized" New topic
Author

Problem with ArrayList not being recognized

Jonathan King
Greenhorn

Joined: Jan 28, 2004
Posts: 14
Hey all, I can't figure out why I can't seem to import the ArrayList class...
I am writing:

but I am getting an error message saying:
identifier expected

and then later, it is claiming that a '.' is expected after ArrayList like this:

What am I doing wrong? My Java book says this is proper sytax for the ArrayList class...
(have SDK1.4.2_03)
THANKS ahead of time,
Jon
Jonathan King
Greenhorn

Joined: Jan 28, 2004
Posts: 14
Never mind, I'm dumb.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9033
    
  10
[I]I am writing:

but I am getting an error message ...[/I]

I guess you discovered that you have a dot after "import" that should be a space.
[ January 29, 2004: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with ArrayList not being recognized
 
Similar Threads
Reteturning a string between a string from a html file and storing it in an array
Out of Sorts
check if ID already exists
Why use List intefrace to create a ArrayList and not ArrayList class?
ArrayList.ensureCapacity