mardi 5 mai 2015

How can I give a certain row of elements all the same value? Using a 2d array?

If I have

String[][] trenches = new String[10][10];

How can i make all elements in row 0 have the value of "X" ? or all elements in row 1 have the value of "0" ?

Aucun commentaire:

Enregistrer un commentaire