Answer the question
In order to leave comments, you need to log in
Server and client?
public class Message implements Serializable {
private String sight;
private String login;
private String password;
private String message;
// клиент
public Message(String login, String password,String sight){
this.login = login;
this.password = password;
this.sight = sight;
}
// сервер
public Message(String message){
this.message = message;
}
public String getSight(){
return sight;
}
public String getLogin(){
return login;
}
public String getMessage(){
return message;
}
public String getPassword(){
return password;
}
}
out.writeObject(client);
clientSend = (Message) in.readObject();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question