java helloworld text code example Example: hello world in java public static void main(String[] args){ System.out.println("Hello World"); }