📄 chinese.java
字号:
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;
//---------- 静态方法的使用 ----------
void singOurCountry(){
//类中的成员方法可直接访问静态成员变量
System.out.println("啊!亲爱的" + country);
}
//---------- 静态方法的使用 ----------
// static void sing(){
// System.out.println("啊!");
// }
//
// void singOurCountry(){
// //类中的成员方法可直接访问静态成员方法
// sing();
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -