Why is my VS-CODE unable to find a main method?

  Uncategorised

Guys why is VSCODE unable to find main method when it’s already there ?

static void sayHello(String name) {
    System.out.println("Hello" + name);
}

public static void main(Strings[ ]args) {
    sayHello("David");
}

A screenshot

Source: Visual Studio Questions

LEAVE A COMMENT