Bifalgorithm post · Computer science one · Handling javanull values
How can you sort lists and arrays of students in Java?
How can you sort lists and arrays of students in Java? (Computer science one · Handling javanull values) — "36. Searching & Sorting\n\n1 List roster = ...\n\n2…
Ideas in this flowchart
- Searching & Sorting in Java
- Student data structures
- List<Student> roster = ...
- Student rosterArr[] = ...
- Sorting comparators
- Comparator byName = ...
- Comparator byGPA = ...
- Sort by name
- Collections.sort(roster, byName);
- Arrays.sort(rosterArr, byName);
- Sort by GPA
- Collections.sort(roster, byGPA);
- Arrays.sort(rosterArr, byGPA);