Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- int i;
- int numOfCases, numOfNums;
- String line;
- Scanner input = new Scanner(System.in);
- numOfCases = input.nextInt();
- while(numOfCases>0){
- numOfNums = input.nextInt();
- for(i=0;i<numOfNums;i++){
- line = input.nextLine();
- System.out.println(line);
- }
- numOfCases -= 1;
- }
- input.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement