📄 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 + -