Write down the program Average.java which just prints strings which it is given at command line, one per line. If nothing is given at command line, print "No arguments".
Alter your program so that it suppose arguments given at command line are integers. If there are no arguments, print message. If there is at least one argument, calculate and print average of arguments. Note that you will require to use parseInt method of Integer class to extract integer values from strings which are passed in. If any non-integer values are passed in, program will produce the error, which is unavoidable at this point.