java - Sort List Student by Grade -
i have exercise oop. define abstract class human first name , last name. define new class student derived human , has new field – grade. define class worker derived human new property weeksalary , workhoursperday , method moneyperhour() returns money earned hour worker. define proper constructors , properties hierarchy. initialize list of 10 students , sort them grade in ascending order. initialize list of 10 workers , sort them money per hour in descending order. merge lists , sort them first name , last name. i have create classes: human, student, , worker. want sort list student grade. should code in java ? package exercise2; import java.util.*; public class main { public static void main(string[] args) { list<student> students = arrays.aslist( new student("tam","le trung ngoc ", "2011"), new student("thai","le hoang thai ", "2012"), new student...