Quote:
Originally Posted by SteveOliverC
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?
|
To keep the code samples in the book as concise as possible I decided not to include the import statements as a step in most of the examples. Including steps to add each import as needed cluttered up the snippets and samples in a way that seemed to detract from what I was trying to show.
The 'suggestion' feature in Eclipse makes pulling in the required imports really quick and simple, so it felt like a good compromise.
So the behaviour you're seeing is as expected -- for most examples you'll probably want to use Eclipse's mechanism for adding the import statements as you go through each step.