?? chinese.java
字號(hào):
package testchinese;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Chinese {
static String country = "中國";
String name;
int age;
//---------- 靜態(tài)方法的使用 ----------
void singOurCountry(){
//類中的成員方法可直接訪問靜態(tài)成員變量
System.out.println("啊!親愛的" + country);
}
//---------- 靜態(tài)方法的使用 ----------
// static void sing(){
// System.out.println("啊!");
// }
//
// void singOurCountry(){
// //類中的成員方法可直接訪問靜態(tài)成員方法
// sing();
// }
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -