The brief ive been given is to write a Java prg to take some command line arguements of the form
JavaProg -n[anInt] -o[inputFileName] -o[outputFileName] -s[aStringWord]
and then use them.
Now I understand very basic args[] use. But in the brief there may be missing args and placed out of order. I am not familiar with the -n, -o -s sintax as not Unix/Command window user. Apparently there is a way of doing this.
as I cant just do int num = Integer.parseInt(args[0]); as may not be first.
any ideas?