Skip to main content



      Home
Home » Newcomers » Newcomers » Old code?
Old code? [message #235081] Thu, 27 September 2007 14:48 Go to next message
Eclipse UserFriend
Originally posted by: rml649.gmail.com

I am new to Eclipse but have programmed Java w/Textpad. When I have tried
importing (i.e. import java.util.*;)it informs me that java.util is never
used.
Are these automatically part of the platform? I seem to have similar
problems with BufferedReader and FileReader.
Any info would be appreciated.
Re: Old code? [message #235087 is a reply to message #235081] Thu, 27 September 2007 15:17 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Raymond,

You should only get this message if deleting that import would not make
your code invalid, i.e., if no name from that namespace is used in the
body of the file.

When you learn to use JDT effectively, you'll find you never type an
import manually because typing List followed by Ctrl-space will
determine how to resolve the name (giving choices if there is more than
one match)and when you pick it) and the import will be added
automatically. You can also invoke "Source->Cleanup" to remove unused
imports and "Source->Organize Imports" to sort them and group them
nicely. You can invoke this for a whole project...


Raymond Laramee wrote:
> I am new to Eclipse but have programmed Java w/Textpad. When I have
> tried importing (i.e. import java.util.*;)it informs me that java.util
> is never used.
> Are these automatically part of the platform? I seem to have similar
> problems with BufferedReader and FileReader.
> Any info would be appreciated.
>
Previous Topic:Eclipsde Debugger Source Lookup Problem
Next Topic:Build problem, where is log?
Goto Forum:
  


Current Time: Fri Apr 25 00:40:34 EDT 2025

Powered by FUDForum. Page generated in 0.06823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top