Hi need Help regarding java collection sorting. It gives me this error:
Bound mismatch: The generic method sort(List) of type Collections is not app
Just add this import import java.util.Comparator;
import java.util.Comparator;
and remove this interface
interface Comparator { int compare(WifiSSID obj1, WifiSSID obj2); }
Your SortSSIDByid comparator class will now implement java.util.Comparator and that is what is required by the Collections.sort() method.
SortSSIDByid
java.util.Comparator
Collections.sort()