I'm very new to Java and have been learning through online tutorials thus far getting some of the basics down. I was asked to create a list that would return names by order of age.
I don't even know where to really begin with this code as I've yet to learn how to do so. I'm not asking anyone to write the code for me but I'd like to know where to start or a resource to learn what method to use for returning a list ordered by a specific parameter. Basically the directions go like this:
"Create a class called Department which will contain a list of employees.
a) Department class will have a method which will return its employees ordered by age."
Any help would be deeply appreciated. Am I working with an array?