I want to take input in the following way:
Sample Input 1
45 3 14
Sample Input 2
12 34 5 56 7
The first line is the number of test cases and the second line is the corresponding values for the test cases.
Please give me the java code for taking multiple inputs in the single line separated by a space.