+ scanner = new Scanner(new File(csvFile));
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ }
+ while (scanner.hasNext()) {
+
+ List<String> line = csvUtils.parseLine(scanner.nextLine());
+
+ String c3 = line.get(0);
+ String[] splitArray = c3.split(",");
+ String c2 = line.get(16);
+ String[] splitArray2 = c2.split(",");
+
+ if (line.get(12).equals("Europe")) {
+ Country c = new Country(splitArray[1], line.get(12), Double.parseDouble(splitArray2[0]), Double.parseDouble(splitArray2[1]));
+ countryArrayListEurope.add(c);
+ } else if (line.get(12).equals("Africa")) {
+ Country c = new Country(splitArray[1], line.get(12), Double.parseDouble(splitArray2[0]), Double.parseDouble(splitArray2[1]));
+ countryArrayListAfrica.add(c);
+ } else if (line.get(12).equals("Americas")) {
+ Country c = new Country(splitArray[1], line.get(12), Double.parseDouble(splitArray2[0]), Double.parseDouble(splitArray2[1]));
+ countryArrayListAmericas.add(c);
+ } else if (line.get(12).equals("Asia")) {
+ Country c = new Country(splitArray[1], line.get(12), Double.parseDouble(splitArray2[0]), Double.parseDouble(splitArray2[1]));
+ countryArrayListAsia.add(c);
+ } else if (line.get(12).equals("Oceania")) {
+ Country c = new Country(splitArray[1], line.get(12), Double.parseDouble(splitArray2[0]), Double.parseDouble(splitArray2[1]));
+ countryArrayListOceania.add(c);