Check out example codes for "java code to print hello world". It will help you in understanding the concepts better.

Code Example 1

class Simple{  
    public static void main(String args[]){  
     System.out.println("Hello Java");  
    }  
}

Code Example 2

printing hello world

Learn ReactJs, React Native from akashmittal.com