/** * Name: Erica Eddy * Course: CSCI 241 - Computer Science I * Section: 001 or 002 * Assignment: 1 * * A mystery: what do you think this main method prints? * Why does the loop stop when it does? */ public class ForLoopMystery { public static void main (String [] args) { int j = 2; int i = 10; for (i = 0; i < 5 && j < 30; i--) { j = j * 2; } System.out.println("i = " + i); System.out.println ("j = " + j); } }