/* Method4.java CIS 160 10/18/04 passing variables by value (default operation) */ public class Method4 { public static void main(String[] args) { int n = 5; System.out.println("Before calling changeNum(): " + n); changeNum(n); System.out.println("After calling changeNum(): " + n); } private static void changeNum(int n) { System.out.println("Start of changeNum(): " + n); n = 7; System.out.println("End of changeNum(): " + n); } } /* Output: Before calling changeNum(): 5 Start of changeNum(): 5 End of changeNum(): 7 After calling changeNum(): 5 */