M
M
mr_blond972017-07-01 06:40:17
Java
mr_blond97, 2017-07-01 06:40:17

How to set the 1st element of a one-dimensional array which is an element of another array?

On the screen, the two-dimensional array myNewInput, its element myNewInput[0][0] contains - a one-dimensional array of 8 elements. How to set the 1st element of a one-dimensional array?
c26633c6ec234a35a897024265286a57.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2017-07-01
@mr_blond97

myInput[ 0 ] = "что-нибудь";
And since objects are passed by reference in Java, the contents of myNewInput at index [ 0 ][ 0 ] will also be changed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question