View Single Post
  #1 (permalink)  
Old December 30th, 2008, 03:23 PM
SteveOliverC SteveOliverC is offline
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2008
Location: Alameda, CA USA
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 2 -- To Do List -- import java.util.ArrayList?

Seems like I had to add import java.util.ArrayList; at the top of the ToDoList.java file because when I tried to run this it gave me an error, and Eclipse suggested importing this because of the use of new ArrayList<String>().

I checked the sample code from this site and it uses this import.

My question is, was that supposed to have been added automatically by Eclipse? If so, when the project was created, or when I typed in that line?

or, should this have been included in as a step in building out this example?

thanks
Reply With Quote