private void sortAndPrint(int numToPrint){
Collections.sort(quakeMarkers) ;
System.out.println(quakeMarkers);
}
jest w takiej klasie
public class EarthquakeCityMap extends PApplet implements ActionListener{
A
public int compareTo(EarthquakeMarker marker) {
return ((Float)this.getMagnitude()).compareTo((marker.getMagnitude())) ;
}
Jest w tej klasie :
public abstract class EarthquakeMarker extends CommonMarker implements Comparable<EarthquakeMarker> {
I w tedy pojawia mi sie blad
The method sort(List<T>) in the type Collections is not applicable for the arguments (List<Marker>
Wiem ze pewnie moj blad jest banalny ale dopiero ucze sie sortowac. Dzieki za pomoc.