Hey guys here is my question.
im using JCombobox.
if a student have CB grade in the lesson,it should be appear in the jcombobox first , like that CB AA BA BB CC DC DD FD FF
if student have DD grade it should be shown like that DD AA BA BB CB CC DC FD FF.
Here all Array members
String[] subset = new String[]{“AA”, “BA”, “BB”, “CB”, “CC”, “DC”, “DD”, “FD”, “FF”};
if a student have BB grade in the lesson array should be sorted like that BB AA BA BB CB CC DC DD FD FF. these mean array should be sorted by student grade in the first element of array. then it should be sorted by descending order.
i asked sorting arrray because jcombobox work on that.
is there a function or method which do that ?
thanks.
How about this:
I didn’t test it, but I think it works.