public class Main{
static void F(double x) {
x = 3; // Here is the catch. Take care of pass-by-value./** 来自 时 代 Java - nowjava.com**/
System.out.println("Before exiting F, value of x:" + x);
}
public static void main(String[] args) {
double x = 5;
F(x);
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。