|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi I'm doing a project in java.It is the game othello.It was all going well till i got an ArrayOutOfBoundsException. the array is this buttons[9][9]; If you dont know othello it's a board game with an 8x8 board.
The Exact error is "ArrayOutOfBoundsException: 9" attached is the file can anyone help I cant seem to fix this. |
| Sponsored Links |
|
|
|
|||||
|
Your indices are going to be 0-8. If you passed a 9 for the index, it will be out of bounds.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VPN project | Acheron | Technology Ramble | 0 | 03-14-2008 06:06 AM |
| A cool project idea. | AlexanderRybak | Community Projects | 3 | 02-11-2008 02:37 AM |
| FreeOrion (a non commercial, community game project, under development) | MikkoM | Video Game Talk | 2 | 01-04-2008 12:19 PM |
| Contributing to a project | Jordan | Community Projects | 7 | 09-15-2006 04:43 PM |
| Community Project! - Recent project gone sour | Crane | C# Programming | 5 | 09-09-2006 02:13 PM |