Ok, I need to add to an ArrayList in order based on 3 conditions. I need help trying to figure out the process.
Each object has several variables, but we only care about 3 of them right now. The 3 variables are:
1) station which is a String.
2) equipment which is a String.
3) depart which is a double.
It must be ordered first by station in alphabetically, second by equipment ordered alphabetically and may contain numbers, and third by depart by largest to smallest.
I've done this sort of thing before, but only with 1 condition. I figured I would use the String.compareTo(String) method to get my values for station, I figure I can do the same for equipment, and I figure depart can be compared with simple <,>,== statements.
Can anyone guide me?