0
stringArrayList.add(gender_type);
stdentlists.add(new Stdentlists(id,gender_type,std_name,std_age,std_class));


Set<String> stringSet = new HashSet<String>(stringArrayList);
ArrayList<String> afterRemovingduplicate = new ArrayList<String>(stringSet);
Abhinav Gupta
  • 2,225
  • 1
  • 14
  • 30
Taps
  • 27
  • 6

1 Answers1

0

Instead of separate arraylist,Create one model which has fields like gender,student... etc. And the try to sort that single arraylist.