1 import java.io.BufferedReader; 2 import java.io.IOException; 3 import java.io.InputStreamReader; 4 5 public class Main { 6 7 public static void main(String[] args) { 8 InputReader.readIntoBuffer(); 9 int testCase = Integer.parseInt(InputReader.readLine()); 10 /* Your code comes here */ 11 } 12 13 static class InputReader { 14 15 private static String buffer[] = new String[1024]; 16 private static int bufferIndex; 17 private static int readIndex; 18 19 public static String readLine() { 20 return buffer[readIndex++]; 21 } 22 23 public static void readIntoBuffer(){ 24 InputStreamReader isr = new InputStreamReader(System.in); 25 BufferedReader br = new BufferedReader(isr); 26 String str=null; 27 try { 28 do{ 29 str = br.readLine(); 30 buffer[bufferIndex++]=str; 31 }while(str != null); 32 } catch (IOException e) { 33 // TODO Auto-generated catch block 34 e.printStackTrace(); 35 } 36 } 37 } 38 }