0
How to sort object array of object array with specific conditions in Java?
I have to display record of students with their branch in sorted manner. Name, ID, Branch ("A", "123", "IT") ("B", "234", "CS") Output ("B", "234", "CS") ("A", "123", "IT"). Please help me with this.
1 Answer
+ 1
For example a quick idea:
the names can be put in a extra array and sorted with Arrays.sort(names);
then can be object array line by line be sorted.