Tuesday, November 4, 2008

NewHello

public class NewHello{
public static void main(String args[]){
if (args.length <1){
System.out.println("Syntax for running Hello is:");
System.out.println(" java Hello ");
System.out.println("\n\nWhere is the person to
greet");
} else
System.out.println("Hello "+args[0]+"!");
}
}