public class printhello { //public class has to be file name without .java if you're using vscode like i am.
public static void main(String[] args) { //the entry point of any java program.
System.out.println("Hello, World!"); //tells the system to output a line thats says Hello, World!".
}
}