The signature of main method is:
Java Code:
public static void main(String[] args) {}
It means that main method takes a string array as the input argument. Lets print the elements of that array.

Java Code:
  public static void main(String[] args) {
    System.out.println("No. of argumetns are: " + args.length);
       for(int i= 0;i < args.length;i++)
          System.out.println("Argument " + i + " is : " + args[i]);
    }