List<Location> locationList = new ArrayList<Location>(locationListSize);
long id = 0;
for (int i = 0; i < locationListSize; i++) {
String line = bufferedReader.readLine();
String[] lineTokens = splitBySpace(line, 2);
Location location = new AirLocation();
location.setId(id);
id++;
location.setLatitude(Double.parseDouble(lineTokens[0]));
location.setLongitude(Double.parseDouble(lineTokens[1]));
locationList.add(location);
}
travelingSalesmanTour.setLocationList(locationList);
createVisitList();
}