M
M
mr_blond972017-07-16 13:50:08
Java
mr_blond97, 2017-07-16 13:50:08

Is it possible to improve the writing of elements to an array?

Task: write the received data from a one-dimensional array into a three-dimensional array.
Is it possible to improve the writing of elements to an array?

byte[] gettingData = new byte[22];
byte[][][] Data = new byte[22][1][1];

client.getInputStream().read(gettingData);

for(int i = 0; i < 22; i++)
{
  Data[i][0][0] = gettingData[i]; 
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question