?? test1.java
字號:
import java.util.*;
interface UserCode{
public MyDate getMyDate( );
// public static UserCode getInstance( );
}
class Test1{
public static void main(String args[] ){
Test1 t=new Test1();
// UserCode uc=UserCode.getInstance( );
Attacker uc=new Attacker( );
t.tt(uc);
}
void tt(UserCode uc){
MyDate d=uc.getMyDate();
if(d.getYear( ) >2010){
System.out.println("Do Critical things here!");
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -