// CSE 142 Lecture 5 // Parameters // Example of parameter mystery problems that you'll see // on the midterm exam. Try to predict the output of the program. public class ParameterMystery { public static final int X = 6; public static void main(String[] args) { int x = 9; int y = 2; int z = 5; mystery(z, y, x); mystery(y, x, z); } public static void mystery(int x, int z, int y) { System.out.println(z + " and " + (y - x)); } /* You may want to rename variables like this to avoid confusion public static void mystery(int first, int second, int third) { System.out.println(second + " and " + (third - first)); } */ }