📄 valueparameter.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -