I cannot figure out how to use general packages in intellij
Answered
I am trying to utilize the import java.util*; packages in IntelliJ but the programs are not recognizing them (because I am obviously doing something wrong). So, for example, say I want to use import java.util.Date; and then proceed to write code that displays the number of milliseconds since 2:00 a.m. Whenever I write in the import java.util.Date; and then write the code after it, it doesn't compile and I receive an error message. I know I am doing something wrong. Therefore, how do I call on the import java.util packages inside the editor so that I can call on its many classes and methods?
Please sign in to leave a comment.
Hi. Providing a screenshot of the error you are getting, and some code examples would be very helpful. Also check that your JDK is set properly: https://www.jetbrains.com/help/idea/sdk.html