This Java program contains a class called Hello with a main method that prints out the message "Hello Shahzad how are you". It defines a simple Java class with a main method that outputs a greeting string to the console.
Practical Design Thinking Workshop for Kingston University
Java simple program
1.
2. • class Hello
• { //start class
• public static void main (String [ ] arg)
• {//start main method
• System.out.println(“Hello Shahzad how are you“);
• } //end main method
• } // end class