I am using BufferedReader class to read inputs in my Java program.
I want to read inputs from a user who can enter multiple integer data in single line with space.
I want to rea
If you want to read integers and you didn't know number of integers
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]);
}