I read line with
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
reader.readLine();
Example input is
1 4 6 32 5
What is the fastest way to read the input and put it into an integer array int[]
?
I'm also looking for some one-line solution if possible.
See Question&Answers more detail:os