?? scope.txt
字號(hào):
// Experiment with variable scope
import javax.swing.JOptionPane;
public class Scope
{
public static int b = 25;
// This is a class variable. It is not declared
// in the body of any methods. What do you think its
// scope will be?
public static void doStuff()
{
int a = 3;
if (a > b)
JOptionPane.showMessageDialog(null,
a + " is larger than " + b);
else
JOptionPane.showMessageDialog(null,
a + " is smaller than " + b);
}
public static void main(String[] args)
{
int a = 15;
int b = 2;
doStuff();
System.exit(0);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -