//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------// the forGeneral loop// Chapter 9, Java Interlude, Page 345-346// MODIFICATIONS://    We have placed the loop in main method and declared i and powOf2.import java.io.*;import java.util.*;public class Demo_forGeneral {	public static void main(String[] a) throws Exception {		int i, powOf2;		////////////////////////////////////////////////////////////////////		for (i=0, powOf2=1; i<10; i++, powOf2*=2)  // Print table of powers 							   //      of 2.			System.out.println("2 to the "+i+" is "+powOf2);		////////////////////////////////////////////////////////////////////	}}