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

📄 dosample.java

📁 java实验报告书:其中包括实验代码以及说明等
💻 JAVA
字号:
class sample 
{
  protected int test(int a) {		            // a为形参
   	return ++a;
  }
  public sample(int i)                      // i为方法sample的形参
	{		                                      
	  int result=test(i);			                // i为调用test方法时的实参
    System.out.println(i);
    System.out.println(result);
  }
}
public class doSample
{
  public static void main(String args[])
	{
    sample r=new sample(3);		              // 3为实参
    System.out.println("This is the result!");
  }
} 

⌨️ 快捷键说明

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