When i tried running this code I get this error..I dont know where i went wrong..
Exception in thread \"main\" java.lang.ArrayIndexOutOfBoundsException: 0
To check the args you should use args.length - not reference the index explicitly
args.length