I’ve created an Arraylist for Employee class and initialized values for the data members like Empid,Empname,DOJ,Salary…after initializing I want to sort with respect to any one particular field. Is this possible in collections or in any concept?
Thanks in advance
I’ve created an Arraylist for Employee class and initialized values for the data members
Share
If you are using c# and Linq you can try with: