Do one of the following while editing your Java code:
The Java editor generates a complete list of import statements, as specified by the import order preference, and new import statements replace the old ones.
Adding required import statements
Managing import statements
Setting the order of import statements
Showing a type's compilation unit in the Package
Explorer view