?? defaultconstructortest.java
字號(hào):
// initialization/DefaultConstructorTest.java
// TIJ4 Chapter Initialization, Exercise 2, page 167
/* Create a class with a default constructor (one that takes no arguments) that
* prints a message. Create an object of this class.
*/
class Kabayo {
Kabayo() {
System.out.println("isa lang kabayo");
}
}
public class DefaultConstructorTest {
public static void main(String[] args) {
Kabayo k = new Kabayo();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -