//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------// the counting loop// Chapter 9, Section 9.6, Page 339// MODIFICATIONS://    We have placed the loop in a main method and provided a BufferedReader//    in a variable named brimport java.io.*;public class Demo_counting {	public static void main(String[] a) throws Exception {		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));		////////////////////////////////////////////////////////////////////		int     klines = 0; // klines==the number of lines read and printed so far.		int     header;     // header==the number of lines available from input.		header  =  Integer.parseInt(br.readLine());		while (klines!=header) {			System.out.println(br.readLine());			klines++;		}		////////////////////////////////////////////////////////////////////	}}// Here is some sample input for this program:// 5// April is the cruelest month.// All the world's a stage.// My only regret is that I have but one life to give my country.// Thou shallt not take a life.// I will not tailor my thoughts to suit the fashions of the moment.