📄 chapter8n3b.java
字号:
/** * * Program to demonstrate Java scope (2) * */public class Chapter8n3b { static int year = 1 ; // attribute static void method1() { int year ; year = 4 ; System.out.println("method1 year = " + year) ; } static void method2() { method1() ; System.out.println("method2 year = " + year) ; } public static void main(String[] args) { method2() ; } } // end of class Chapter8n3b
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -