标签:strong ++ pac ring print oid package demo font
代码如下:
package ClassDemo; public class Increment {
public static void main(String[] args) {
int x = 1;
System.out.println("Before the call, x is: " + x);
increment(x);
System.out.println("After the call, x is: " + x);
}
private static void increment(int n) {
n++;
System.out.println("n inside the method is: " + n);
}
}
标签:strong ++ pac ring print oid package demo font
原文地址:http://www.cnblogs.com/F001li/p/7055655.html