Forums Register Login

Problem with ArrayList not being recognized

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Never mind, I'm dumb.
+Pie Number of slices to send: Send
[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 ]
get schwifty. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 670 times.
Similar Threads
Out of Sorts
check if ID already exists
ArrayList.ensureCapacity
Why use List intefrace to create a ArrayList and not ArrayList class?
Reteturning a string between a string from a html file and storing it in an array
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:06:00.