?? people.java
字號:
import java.io.*;
public class People implements Serializable,Comparable{
String name=null;
int time=0;
int count=0;
public People(String name,int t,int count){
this.name=name;
time=t;
this.count=count;
}
public int getTime(){
return time;
}
public String getName(){
return name;
}
public int getCount(){
return count;
}
public int compareTo(Object b){
/* People p=(People)b;
if((this.time-p.time)==0)
return 1;
else
return (this.time-p.time);
*/
People p=(People)b;
if((this.count-p.count)==0)
return 1;
else
return (this.count-p.count);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -