how to read integer and an arry using bufferedreader in java code example
Example: read a file in java and store as integer array using buffered reader
String[] integersInString = br.readLine().split(" ");
int a[] = new int[integersInString.length];
for (int i = 0; i < integersInString.length; i++) {
a[i] = Integer.parseInt(integersInString[i]);
}