?? keyword.java
字號:
public class Keyword {
int type;
String skey;
int ikey;
float fkey;
public Keyword(String key) {
type = 3;
this.skey = key;
}
public Keyword(int key){
type = 1;
this.ikey = key;
}
public Keyword(float key){
type = 2;
this.fkey = key;
}
public int compareTo(Keyword key1){
if(type == 1)
return this.ikey-key1.ikey;
else if(type == 2)
return (int)(this.fkey-key1.fkey);
else
return skey.compareTo(key1.skey);
}
public int length(){
if(type == 1)
return 4;
else if(type == 2)
return 4;
else
return skey.length()*2;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -