/**
 * @author Brad Knox
 *
 * If you have not yet learned how to use BlueJ and are not already using
 * another environment, go to 
 * www.cs.utexas.edu/~scottm/cs307/handouts/BlueJProjectInstructions.html
 * to get started. 
 * 
 * Type this program into BlueJ or another development environment.
 * 
 * The code below contains 6 syntax (compile-time) errors. One of the errors
 * occurs twice in a close space, so it is being counted as one. Find the 
 * 6 errors and any you accidentally added and fix them.
 * 
 * Answer the questions in comments.
 */
public class IntManipulateErr {
    public static void main (String[] args) {
        System.out.println();
        System.out.println("This program shows some examples of " +
                "variable declaration, variable assignment, static methods," +
                " and print statements.\n");
        horLine();    // What do you expect the screen to look like at this
                    // point, considering what has printed to it?
        int x = 5;   
        int y = 7;
        system.out.println("x = " + x);
        System.out.println("y = " + y);
        horLine();
        int x, y;
        x = x / 2;         // What is the value of x after this line?
        y = y * 2;        // What is the value of y after this line?
        System.out.println("x = " + x);
        System.out.println("y = " + y);
        horLine()
        x--;
        y++;
        x = 2 + x / y;    // What is the value of x after this line?
        y = y % 2;        // What is the value of y after this line?
        System.out.println("x = " + X);
        System.out.println("y = " + y);
        horLine();
        // What would the value of x have been here if it had been 
        // declared a double?
        System.out.println("Quote of the day: "Every thinker puts some " +
                "portion of an apparently stable world in peril." -John Dewey");
    }
    
    public static void horLine ()
        System.out.println("---------------------------------------------");
    }
}
