我这有个J2ME的网络聊天系统程序,是我的毕业设计,我是分块编写的,出了问题,请大家看看,帮忙修改一下
package mtalk;
import java.io.IOException;
import java.util.Vector;
public interface ClientProtocol {
public interface Listener{
//新增一个事件响应方法
void onNewMessage(int senderUserNameHashCode,String msg);
void onUpdateActiveUserList(Vector userList);
}
void setListener(Listener l);
public void sendMessage(String userName,String msg) throws IOException;
void login(String userName)throws IOException;
void logout()throws IOException;
}