Search code examples
intellij-idea

Intellij can not recognize java.util.List


When I input List in Intellij, it doesn't automatically provide a prompt for importing java.util. I have to import java.util.List manually.

When I write java.util, it doesn't prompt to add List, but instead ArrayList.


Solution

  • Please check File | Settings | Editor | General | Auto Import | Exclude from Import and Completion. If java.util.List is there, remove it.