This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

TicTacToeGame  RSS feed

 
Ranch Hand
Posts: 65
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I hit  play  I have an error on createBoard and winOrTie. Pleasehelp me with this thank you for your time.   I am using netbeans.

 
Sheriff
Posts: 6775
469
BSD Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. It is almost worst code indentation I have seen. You really need to indent your code as nobody else apart from me probably will ever look at it. So fix code indentation and re-post your code.
2. When you get an error, it is useful to tell - what kind of error you're getting? Copy/Paste exactly as the error appears in your NetBeans IDE environment.
3. You said you're getting errors in "createBoard() and winOrTie()", but non of those mentioned methods implementations you showed us. So please do so.
4. Nearly got confused about lines 5 and 6, but it is again down to problem No. 1.
 
Bartender
Posts: 1464
32
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Liatauras is right, that was originally some very odd formatting. I've reformatted it to how I do it, which is not the only way, but it is an accepted style (known as "Allman" style).
 
Always look on the bright side of life. At least this ad is really tiny:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!