// Short mystery program to highlight the idea of scope and parameters // First think about what variables are defined in main // Then think about what values get passed to mystery // Then think about what those values are named in mystery public class ParameterMystery { public static void main(String[] args) { int x = 5; int y = 9; int z = 2; mystery(z, y, x); mystery(y, x, z); } public static void mystery(int x, int z, int y) { System.out.println(z + " " + y + " " + x); } }