Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / Origin.java
index 60e7fc9e641a40a6690458dffa0e1f8395469f59..6e89fb93e36900638f8ea51dd4728d48d3e047e2 100644 (file)
@@ -1,8 +1,22 @@
 public class Origin implements Comparable<Origin> {
+    private String continent;
     private String country;
 
+    Origin() {
+    }
+
     Origin(String country) {
         setCountry(country);
+        //TODO: properly set the continent from the country.
+        setContinent("Europe");
+    }
+
+    public String getContinent() {
+        return continent;
+    }
+
+    public void setContinent(String continent) {
+        this.continent = continent;
     }
 
     public String getCountry() {