Professional Documents
Culture Documents
/*
Sort method of the Arrays class sorts the given array.
Signature of the sort method is,
static void sort(Object[] object, Comparator comparator)
*/
/*
Sorting array on the basis of employee age by passing AgeComparator
*/
Arrays.sort(employee, new AgeComparator());
}
}
==========================================o0o======================================
====
class AgeComparator implements Comparator{
—————————————————————
Bỉ : Trí10, Hướng5, Hội15, Chung2, Thưởng15, Đạt5, Hien5. ∑= 57task
Anh: Nam8, Đức5, Giang10, Tuấn14, Thanh15, Hoa5. ∑= 57task
—————————————————————
Pháp chấp Croatia 3/4 => ??
Pháp : Đức10, Nam10, Giang10, Đạt5, Chung3, Hien5. ∑= 43task
Croatia: Hướng18, Thanh10, Thưởng10, Trí5 . ∑= 43task
--------------
itcntt.com