What I would like to achieve by asking this question is to learn how to send and receive 2-Dimensional Arrays to another computer.
The context is that the <
This will work with any primitive type arrays and Object arrays if object type is instanceof Serializable
server
ServerSocket ss = new ServerSocket(port);
Socket s = ss.accept();
ObjectInputStream is = new ObjectInputStream(s.getInputStream());
byte[][] array = (byte[][])is.readObject();
client
byte[][] array = new byte[10][10];
Socket s = new Socket("host", port);
ObjectOutputStream os = new ObjectOutputStream(s.getOutputStream());
os.writeObject(array);