// Tyler Rigsby, CSE 142 // An example of a Parameter Mystery problem -- expect one like this // on the midterm. Given code like below, what does it output? public class ParameterMystery { public static void main(String[] args) { int w = 4; int x = 9; int y = 2; int z = 5; mystery(z, y, x); mystery(y, w, z); w += 3; mystery(w, w, z); } public static void mystery(int x, int z, int y) { System.out.println(z + " and " + (y - x)); } // 2 and 4 // 4 and 3 // 7 and -2 }