//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------// the forHeader loop// Chapter 9, Java Interlude, Page 345-346// MODIFICATIONS://    We have placed the loop in main method and provided a BufferedReaderimport java.io.*;import java.util.*;public class Demo_forHeader {	public static void main(String[] a) throws Exception {		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));		////////////////////////////////////////////////////////////////////		int lines  =  0;   // lines==the number of lines read and printed so far.		int header;        // header== the number of lines available from input.		header  =  Integer.parseInt(br.readLine());		for  (lines=0; lines!=header; lines++)			System.out.println(br.readLine());		////////////////////////////////////////////////////////////////////	}}// Here is some sample input for this program:// 4// Here I sit so patiently// Waiting to find out what price// You have to pay to get out of// Going through all these things twice.