Copying a 2D non-space array to another
Posted
by
Jay
on Stack Overflow
See other posts from Stack Overflow
or by Jay
Published on 2013-10-23T03:45:00Z
Indexed on
2013/10/23
3:53 UTC
Read the original article
Hit count: 205
java
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...)
© Stack Overflow or respective owner