title: Taking Inputs in single array in multiple lines (Test Cases)
body: <p>I am able to take inputs in a single line in an array by the code below,but i want it to be-</p>
  
  <p>3     //no of test cases</p>
  
  <p>640 480 // new line</p>
  
  <p>120 300 // new line</p>
  
  <p>180 180 // new line</p>
  
  <p>"3"is the no of test cases,the six numbers need to be stored in a single array,how should i do it?</p>
  
  <pre><code>  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  
    System.out.println("Enter Min Length:-");
    String lt = br.readLine();                           //Ignore this
    int length= Integer.parseInt(lt);
  
    System.out.println("Enter Test Cases:-");
    String temp = br.readLine();                       //test-case input
    int testcases = Integer.parseInt(temp);
  
    System.out.println("Enter the W and H");
    String array = br.readLine();                     //this takes only input in single line
    String No[] = array.trim().split("\\s+");
    int intarray[]= new int[testcases];
  
    for(int i =0;i&lt;intarray.length;i++)
         {
           intarray[i]=Integer.parseInt(No[i]);
         }
    System.out.println(Arrays.toString(intarray));
  </code></pre>