valueparameter.java
来自「Java程序设计技巧与开发实例附书源代码。」· Java 代码 · 共 16 行
JAVA
16 行
public class ValueParameter{ public static void aMethod(int input) { System.out.println("Value of input at start of aMethod: " + input); input += 10; System.out.println("Value of input at end of aMethod: " + input); } public static void main(String args[]) { int number = 10; System.out.println("Value before calling method: " + number); aMethod(number); System.out.println("Value after calling the method: " + number); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?