/* Filename: ifError1.java * Description: This code contains errors and will be used * as an exercise in debugging */ public class ifError1{ public static void main(String [] args){ // declare variables int x = 2; int y = 0; if(x == 1); y = 2; else if(x == 2); y = 3; else if(x == 3); y = 4; System.out.println("x is: " + x + " and y is: " + y); } }