Copying a 2D non-space array to another
- by Jay
I'm a total programming newb who started learning java programming this sem at uni.
I'm up to a step where i need to copy some elements from one method to another. This program i'm creating is called an L_Game.
The question I'm stuck is: the project(Slide other) method should take another slide as a parameter, and copy each non-space cell from this slide into the other slide (i.e. like a projector projecting slides onto a screen.
I previously made a constructor with the parameter cells in it and believe i copied it to the project(Slide other) method. But i'm not sure what to do to copy each "non-space cell" With the "for" method or the "if" method?
If my question isn't typed correctly or have information missing, please let me know. Any help will be appreciated. (I obviously have no idea with what i'm doing...)