package uv;
public class bean implements comparable {
string sessionid;
integer num = 1;
public string getsessionid() {
return sessionid;
}
public void setsessionid(string sessionid) {
this.sessionid = sessionid;
}
public integer getnum() {
return num;
}
public void setnum(integer num) {
this.num = num;
}
public bean(string sessionid) {
this.sessionid = sessionid;
}
public void increase() {
++num;
}
@override
public int compareto(bean o) {
return this.sessionid.compareto( o.getsessionid());
}
@override
public string tostring() {
return sessionid;
}
public static void main(string[] args) {
system.out.println("b".compareto("b"));;
}
}