aspose file tools*
The moose likes Beginning Java and the fly likes Have board printed twice in second method. Board class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Have board printed twice in second method. Board class." Watch "Have board printed twice in second method. Board class." New topic
Author

Have board printed twice in second method. Board class.

Edward Strife
Greenhorn

Joined: Mar 15, 2012
Posts: 14
Here is my improved code. However I do currently have one issue. When I print my alternating symbols method, its prints the board twice. I am not sure why. Earlier I attempted to put that portion of the method in a while loop using a count to try and end it but that did not work out for me. Any more help would be greatly appreciated.

Thanks.

Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8427
    
  23

Edward Strife wrote:Here is my improved code.

Erm, does this mean you posted on this subject before? If so, could you provide us a link to the previous thread?

Thanks

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Mori Gad
Greenhorn

Joined: Dec 16, 2011
Posts: 16
The method alternateSymbols() has prints for the board. So when you call it, you get a board. Then you called printBoard, to get it again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Have board printed twice in second method. Board class.