I am trying to create a program that will create an mxm grid using a 2D array. I want each of the elements within the array to be a “*”. The problem is that I don’t want to have to write a line of code to individually change each element within the grid. The m is going to be variable
Tag: datainputstream
How to send a valid result of an arithmetic operation through DataOutputStream
I have a subprocess class that calculate the sum of two integers and then put it in a DataOutputStream: when writing the two values of a and b like 12 and 47 respectivley the result is “ei”. In another hand the mainprocess won’t read that result like an DataInputStream through the ReadInt() line, and it throws an exception : Answer