//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------// the accumulating loop// Chapter 9, Section 9.6, Page 340// MODIFICATIONS://    We have placed the loop in a main method and provided a BufferedReader//    in a variable named br//    We have added a print of the concatenated string after the loopimport java.io.*;public class Demo_accumulating {	public static void main(String[] a) throws Exception {		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));		////////////////////////////////////////////////////////////////////		String s = "";		String line;		line = br.readLine();		while (line!=null) {			if (line.substring(0,1).equals(":"))				s = s.concat(line);			line = br.readLine();		}		////////////////////////////////////////////////////////////////////		System.out.println(s);	}}// Here is some sample input for this program:// this will be ignored// : Disney// : McDonalds// This line will be ignore too// : General Electric// : Citigroup