This is the error:
"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at Life.neighbors(Life.java:51)
at Life.main(Life.java:29)"
The matrix is determined by the user...
Type: Posts; User: LostAndConfused
This is the error:
"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at Life.neighbors(Life.java:51)
at Life.main(Life.java:29)"
The matrix is determined by the user...
I'm running into an issue where my method that should count neighbors gets an array out of bounds error. I have tried a couple of things to fix it, but they've all failed. Any suggestions? :confused:...