When you use the IDE's code completion and editor hints features, import statements are generated for you automatically. For example, if you have the code completion box open and you start typing a simple class name instead of its fully-qualified class name (e.g., you type Con and then select ConcurrentHashMap from the code completion box), the following import statement will be added to the beginning of the file: import java.util.concurrent.ConcurrentHashMap; For cases where these mechanisms are not sufficient for the management of import statements, you can use the following commands:
|