Skip to content

Task-15

Muhammad Manzoor Asif requested to merge Task-15 into main

Collections Framework - 3

"3. Write a java program that takes unsorted records of Students inside an ArrayList and sorts them in ""Ascending Order"" according to student name.

NOTE: - If more than one student has the same name, then sort the record according to age, in Ascending Order.

  • Use Comparator to sort the Student objects inside the ArrayList.
  • Student class fields are ""id"", ""name"" and ""age""."
Edited by Muhammad Manzoor Asif

Merge request reports