0

Regarding the following code:

public class HelloWorld {
    public static void main(String[] args) {

    }
}

My InteliJ marks String in red, saying:

Cannot resolve symbol 'String'

Alon
  • 10,381
  • 23
  • 88
  • 152
  • 9
    Have you configured a JDK to use in the project? (On windows: ) File > Project Structure > JDK. Additionally, clicking {ALT} + {ENTER} on the word underlined in red will likely come up with a suggestion (with a link) on how to resolve it. – BeUndead Feb 17 '20 at 12:18
  • 1
    Make sure you have your JDK set up for making String available in your classpath. – Giorgi Tsiklauri Feb 17 '20 at 12:20
  • @BeUndead thanks, that solved the problem. – Alon Feb 17 '20 at 21:39

0 Answers0