I'm a huge beginner to java and this website. I'm using eclipse for this small bit of code, and I keep getting this output:
"Error: Main method not found in class HelloWorld, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application"
I'm trying to get better with variables, but the only function it works on is public static void main(String[] args) and I don't know why
public class HelloWorld{
void assignVar() {
String wow = new String("hi!");
System.out.println(wow);
}
}