Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         int i;
  7.         int numOfCases, numOfNums;
  8.         String line;
  9.         Scanner input = new Scanner(System.in);
  10.         numOfCases = input.nextInt();
  11.         while(numOfCases>0){
  12.             numOfNums = input.nextInt();
  13.            
  14.             for(i=0;i<numOfNums;i++){
  15.                 line = input.nextLine();
  16.                 System.out.println(line);
  17.             }
  18.             numOfCases -= 1;
  19.         }
  20.        
  21.         input.close();
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement