1public class HelloWorld {
2 public static void main(String []args) {
3 /* println() function to write Hello, World! */
4 System.out.println("Hello, World!");
5 }
6}
1// Your First Program
2
3class HelloWorld {
4 public static void main(String[] args) {
5 System.out.println("Hello, World!");
6 }
7}