How to sort object array of object array with specific conditions in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

4th Aug 2020, 10:21 AM
Prashant Pal
Prashant Pal - avatar
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.
4th Aug 2020, 10:51 AM
JaScript
JaScript - avatar