?? passingthisex.java
字號:
// initialization/PassingThisEx.java
// TIJ4 Chapter Initialization, Exercise 8, page 170
/* Create a class with two methods. Within the first method, call the
* second method twice: the first time without using this, and the second time
* using this - just to see it working; you should not use this form in
* practice.
*/
class Doc {
void intubate() {
System.out.println("prepare patient");
laryngoscopy();
this.laryngoscopy();
}
void laryngoscopy() {
System.out.println("use laryngoscope");
}
}
public class PassingThisEx{
public static void main(String[] args) {
new Doc().intubate();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -