Hello!
I have a three java classes: Client, Server and Cap. Cap implements Serializable and doesn't contain any object that doesn't do the same. The client is sending an object of Cap to the server through sockets and the server is recieving it like this:
in = new ObjectInputStream(socket.getInputStream()); out = new ObjectOutputStream(socket.getOutputStream()); Cap cap = (Cap) in.readObject();
Under the last code line I want to call different methods that Cap have, but it doesn't work. I'm using NetBeans and the method options is equals, getClass, hashcode....
It seems like the cast to Cap doesn't work. What am I doing wrong?
Hank