class ShowSalary { static int previousSalary = 0; int commission = 10; public static void main (String[] args) { int currentSalary = 100; if (currentSalary == 0) { System.out.println("There is only a commission."); } else { System.out.println("Current salary is " + currentSalary); } System.out.println("Previous salary is " + previousSalary); // The following would cause a compile error. // System.out.println(commission); } }