Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger


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.

Posts: 7616
Mac OS X VI Editor BSD Linux
  • 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.
Posts: 1464
Netbeans IDE C++ Java 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).
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic