public class Test { int i = 40;int j; public Test() { setValue(i++); } void setValue(int inputValue) { int i = 20;j = i + 1;System.out.println("j = " + j); }}
假設(shè)當(dāng)setValue()方法顯示變量j時(shí),該變量的值是多少?
人到中年有點(diǎn)甜
2022-12-17 17:13:01