I can't figure out what's wrong with it even after plugging it into JGrasp. Thanks for any help.
public class Mystery
{
static final int ONE = 5;
public static void main(String[] args)
{
int x, y, w, z;
z = 9;
if (z > 10)
x = 12, y = 5, w = x + y + one;
else
x = 12, y = 4, w = x + y + one;
System.out.println("w = " + w);
}
}
public class Mystery
{
static final int ONE = 5;
public static void main(String[] args)
{
int x, y, w, z;
z = 9;
if (z > 10)
x = 12, y = 5, w = x + y + one;
else
x = 12, y = 4, w = x + y + one;
System.out.println("w = " + w);
}
}