So I have a file with a list like this
2134:193
192:1856
1092:1850
980:759
etc
i would like to process the file and add it to an array, then be able to grab the int's
like i would like to do System.out.println("first+" : "+second);
Not sure what the best way to store it is but here's my attempt so far
public static void loadList() {
BufferedReader br = new BufferedReader(new FileReader("./data.txt"));
String line;
while ((line = br.readLine()) != null) {
String args[];
args = line.split(":");
int first = Integer.toInt(args[0]);
int second = Integer.toInt(args[1]);
System.out.println(first + " : " + second);
}
br.close();
}