public class Greeting { public static print() { Greeting obj1 = new Greeting() ; } public static void main(String[] args) { //Greeting obj1 = new Greeting() ; print() ; if ( args.length == 0 ) System.out.println("Missing argument.") ; else System.out.println("Welcome " + args[0] + " to the Java class !" ) ; } }