⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callbyref.java

📁 it is a good tool to help you study java
💻 JAVA
字号:
class Test{
int a,b;
Test(int i,int j){
a=i;
b=j;
}
void meth(Test o){
o.a*=2;
o.b/=2;
}
}
class CallByRef{
public static void main(String args[]){
Test ob =new Test(15,20);
System.out.println("ob.a and ob.b before call"+ob.a+" "+ob.b);
ob.meth(ob);
System.out.println("ob.a and ob.b after call"+ob.a+" "+ob.b);
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -