I dont know how the File looks inside, but you should creat a list for your CoordinatesParamas
and then iterate over the data you read from the file to fill the list with CoordinatesParamas
objects and set the latitude and longitude in this objects via setters.
List<CoordinatesParamas> lCoordinates = new ArrayList<CoordinatesParamas>();
while(sc.hasNextLine()) {
CoordinatesParamas temp = new CoordinatesParamas();
String pair = sc.nextLine();
String[] s = pair.split(" ");
temp.setLatitude(s[0])
temp.setLongitude(s[1])
lCoordinates.add(temp );
}
I changed string.split("\t")
with split(" ")
because it looks like there is not a tab between the coordinates, only a whitespace.