The signature of main method is:
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.
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]);
}