Quantcast
Channel: User AHungerArtist - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Comment by AHungerArtist on Storing a static variable in a temp variable

$
0
0
You are making temp reference your static chessboard. As such, they are essentially the same thing. You need to make a new chessboard and populate. String temp[][]=chessBoard;does NOT copy the values to a new object, it just creates a reference to the original chessBoard.

Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>