?? example6.java
字號:
public class Example6
{
//定義靜態(tài)方法
public static void showString()
{
System.out.println("This is a static method!");
}
public static void main(String[] args)
{
//使用類名直接調(diào)用靜態(tài)方法showString()
Example6.showString();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -