public class Region {
private String csvFile = "data/countries.csv";
+ private String[] continents = {"Africa", "Americas", "Asia", "Europe", "Oceania"};
private ArrayList<Country> countryArrayListEurope = new ArrayList<>();
private ArrayList<Country> countryArrayListAfrica = new ArrayList<>();
private ArrayList<Country> countryArrayListAmericas = new ArrayList<>();
public Region() {
+ this.loadCSVCountries();
}
- public void getCsvFile() {
+ public String[] getContinents() {
+ return continents;
+ }
+
+ public ArrayList<Country> getCountryArrayListAfrica() {
+ return countryArrayListAfrica;
+ }
+
+ public ArrayList<Country> getCountryArrayListAsia() {
+ return countryArrayListAsia;
+ }
+
+ public ArrayList<Country> getCountryArrayListAmericas() {
+ return countryArrayListAmericas;
+ }
+
+ public ArrayList<Country> getCountryArrayListEurope() {
+ return countryArrayListEurope;
+ }
+
+ public ArrayList<Country> getCountryArrayListOceania() {
+ return countryArrayListOceania;
+ }
+
+ public void loadCSVCountries() {
CSVUtils csvUtils = new CSVUtils();
Scanner scanner = null;
try {
Utils.displayArrayList(countryArrayListAmericas);
Utils.displayArrayList(countryArrayListAsia);
Utils.displayArrayList(countryArrayListEurope);*/
+
}
}
\ No newline at end of file