📄 dosample1.java
字号:
class Integer //定义一个整型类
{
int i; //i定义为整型类的成员变量
}
class DoSample1
{
static int test(Integer a)
{
return ++a.i;
}
public static void main(String args[])
{
Integer a=new Integer();
a.i=1;
System.out.println(test(a));
System.out.println(test(a));
System.out.println("This is the result:");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -