Scanner Java Import Non-Existence Error

Answered

I wanted to make a user input Java project, so I typed in import java.util.Scanner;   and then red lines appeared under it meaning that there was an error. So, I just ran the code to see if it was just a glitch, and then it said an error message. Can you help?

 

 

 

B.T.W. here's the error message  Error: Could not find or load main class com.company.Main
                                                     Caused by: java.lang.ClassNotFoundException: com.company.Main

Please sign in to leave a comment.