No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Here I have a program called Connect4Model. Basically what the problem is that I have successfully compiled the program in TextPad. However when I run the program it throws up an Exception in thread "main" error. I fully understand what this error is, and it basically means that I'm missing … |
|
public class Connect4Model { Connect4Column [] columns; // Cannot find symbol private int NUM_COLUMNS; private int NUM_ROWS; private int playerToGoNext = Connect4Column.RED_COUNTER; // cannot find symbol Connect4Model(int numCols, int numRows); // Missing method body...Is this because I'm missing a curly braces just above { columns = new Connect4Column[NUM_COLUMNS]; for (int … |
|
Hi, I'm currently in a the process of making a connect4 game, but what is highly frustrating is that im trying to write a loop that takes i from 0 up to the NUM_COLUMNS. and then make the new object called Connect4Column. When I compile and run this it gives … |