Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to print hello world java

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!".
    }
}
Source by www.instagram.com #
 
PREVIOUS NEXT
Tagged: #print #world #java
ADD COMMENT
Topic
Name
1+2 =