This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with ArrayList not being recognized  RSS feed

 
Jonathan King
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, I'm dumb.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!