Hi!
Hoping someone can point me in the right direction.
I have a Person class with comparators for each attribute of the person, so that I can sort according to the different attributes such as name, surname, age. At the moment when I type
java TestPerson.java - it�s printing out something like:
Firstname sort:
Susan, Smith 25
Tom, Robbins 42
I now want to include in my command line argument the attribute and the type of sort Eg. TestPerson.java surname ascend. Are there any tutorials that would explain to me how programs take in command-line arguments?
Thanks, hugely appreciated.