//Ali Soleimani
//CS3 Lab #1
//Extra credit implemented: takes a command line argument for # of hellos

public class hello {
public static void main(String[] args) {
System.out.println("Extra credit implemented: Cmd-line arg");
  if(args.length!=0) {
    int i=Integer.valueOf(args[0]).intValue();
    //I elected not to worry about catching the NumberFormat exception here.
    for(int j=0; j<i; j++)
      System.out.println("Hello World!");
  }
  else
    System.out.println("Hello World!");
}
}




