Ok, here are a few things:
1. Remember what you did to SpaceTaken? Try to do that with your other methods (i.e. get rid of all those unecessary if/else's. Only 1 pair is needed, 0 if you make some...
Type: Posts; User: helloworld922
Ok, here are a few things:
1. Remember what you did to SpaceTaken? Try to do that with your other methods (i.e. get rid of all those unecessary if/else's. Only 1 pair is needed, 0 if you make some...
1. Don't use an int array if you're trying to store characters. There's conveniently a character data type.
2. Are you sure you're populating the array a with 'X' and 'O' (or even at all)? Java is...
Wow, I would strongly recommend changing your spaceTaken method. You can directly put x into the index of a, therefore reducing your code down to one if-else statement.
I'm somewhat confused, what...