/* Helene Martin, Garfield AP CS
	We used this example to discuss scope.
	Running this piece of code with the jGRASP debugger helped us see when variables started existing and disappeared.
*/
public class ScopeTest {
	// Class constant is visible in entire class
	public static final int SIZE = 3;   
	
	public static void main(String[] args) {
		// grade is created in main and available throughout
		int grade = 96;
		// i exists through the entire outer for loop
		for(int i = 1; i <= grade; i++) {
			// j only exists in the inner for loop
			for(int j = 1; j <= i*2; j++) {
				System.out.print(j);
			}
			System.out.println();
		}
	}
}
