1

I was trying to use List and Set on my code using Intellij. But Intellij only suggest classes under maven libraries, not JDK.

enter image description here

I can only use Java Collections(List, Set) by manually typing imports on the top of the file. so inconvenient.. please help

tuty_fruity
  • 523
  • 1
  • 5
  • 18

1 Answers1

0

Verify that Project SDK is set:

  1. Open Project Structure File -> Project Structure...
  2. Project Settings -> Project
  3. Verify that you have a Project SDK set up.

Alternatively, try and create a simple Java Application and see if the problem persists. Then, try to re-import the maven project.

Hope this helps :)

Raghav Sharma
  • 68
  • 1
  • 9