G
gk
I have a class.
the class has member variables String StudentName , String MobleNumber.
I have created 4 objects of this class.
Now,i want to sort these objects (based upon alphabetical StudentName
).
How do i sort ?
can i use Collection.sort() here.
can you suggest an easy way to sort the objects.
the class has member variables String StudentName , String MobleNumber.
I have created 4 objects of this class.
Now,i want to sort these objects (based upon alphabetical StudentName
).
How do i sort ?
can i use Collection.sort() here.
can you suggest an easy way to sort the objects.