dimanche 29 mars 2015

Putting data from an Array into a 2D array Java



Lets say I have an array of strings as followed



[red,black,blue,orange,green]


What I want to do is put this in a 2D array as so:



[red][black][blue][orange][green]
[red][black][blue][orange][green]
[red][black][blue][orange][green]


How can I accomplish this?




Aucun commentaire:

Enregistrer un commentaire