Hello World 2 #551 class HelloWorld2 { public static void main(String[] args) { System.out.println("Hello "+"World!"); } } This is a program that prints hello world! given as two separate words.
Hello World with Comments #553 /* A program to show the purpose of comments Author: ComputerSirKiClass */ class HelloWorldC { public static void main(String[ ] args) { System.out.println("Hello World"); //Method for output to console } } This is a program that will tell us the use of comments in a code.