Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / Origin.java
index 30efb81c140862718dbe20c013629886a25f58a9..6e89fb93e36900638f8ea51dd4728d48d3e047e2 100644 (file)
@@ -2,9 +2,13 @@ public class Origin implements Comparable<Origin> {
     private String continent;
     private String country;
 
-    Origin(String continent, String country) {
+    Origin() {
+    }
+
+    Origin(String country) {
         setCountry(country);
-        setContinent(continent);
+        //TODO: properly set the continent from the country.
+        setContinent("Europe");
     }
 
     public String getContinent() {