Source of TestArgs.java


  1: // TestArgs.java
  2: // Tests for the existence of command-line parameters.

  4: public class TestArgs
  5: {
  6:     public static void main(String[] args)
  7:     {
  8:         if (args.length == 0)
  9:             System.out.println("No command-line arguments.");
 10:         else
 11:             System.out.println(args[0]);
 12:     }
 13: }