📄 scope.java
字号:
//demonstrate block scope
class scope
{
public static void main(String[] args)
{
int x = 10;
if(x == 10)
{
int y = 20;
System.out.println("x and y: " + x + " " + y);
x = y * 2;
}
//y = 100;//Eorror! y not know here
System.out.println("x is: " + x);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -