I have classes: Client, Server and Background is working with Player class. I really don\'t understand why my Client class with ObjectInputStream/ObjectOu
ObjectInputStream
ObjectOu
You need to construct the ObjectOutputStream before the ObjectInputStream, at both ends. At present you have a deadlock.
You also need to move the closes outside the loops.