X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FOrigin.java;h=c02dd28a1f4b777de433777a5e5452b8a6702f31;hb=9f1e899962a92c9c1b8d3713eca0524964465014;hp=efce11a79dc6b71678f2338afa05b8dac78e713a;hpb=5bdd299653b9c3f29a817a555ae6a17eac41b75b;p=Persons_Comparator.git diff --git a/src/Origin.java b/src/Origin.java index efce11a..c02dd28 100644 --- a/src/Origin.java +++ b/src/Origin.java @@ -1,7 +1,7 @@ import java.util.ArrayList; import java.util.Arrays; -public class Origin implements Comparable { +public class Origin { private String continent = "Unknown"; private String country; private String[] continents = {"Africa", "Americas", "Asia", "Europe", "Oceania"}; @@ -9,11 +9,10 @@ public class Origin implements Comparable { {"Mali"}, /* Africa */ {"United States of America", "Brasil", "Mexico"}, /* Americas */ {"India"}, /* Asia */ - {"France", "Germany", "United Kingdom", "Belgium", "Norway"}, /* Europe */ + {"France", "Italie", "Germany", "United Kingdom", "Belgium", "Norway"}, /* Europe */ {"Australia"} /* Oceania */ }; - Origin() { } @@ -63,8 +62,7 @@ public class Origin implements Comparable { return "Unknown"; } - @Override - public int compareTo(Origin origin) { + public int distanceTo(Origin origin) { return 0; } }