📄 aboutparameter.java
字号:
package jerryhfb;
public class AboutParameter{
public static void main(String args[]){
AboutParameter aa=new AboutParameter();
TestedClass a=new TestedClass();
System.out.println("begining:");
System.out.println("attribute of a is "+a.getAttribute());
System.out.println("Send a to math:");
aa.changeObjectAttribute(a);
System.out.println("attribute of a is "+a.getAttribute());
}
public void changeObjectAttribute(TestedClass x){
System.out.println("at beginning attribute inside function is "+x.getAttribute());
x.setAttribute(x.getAttribute()*10);
System.out.println("attribute inside function is "+x.getAttribute());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -