Sorry it was an example and not typed well. It returns an int
public int token(int col, int row) {
return array[col][row] }
simply
Type: Posts; User: Scotty
Sorry it was an example and not typed well. It returns an int
public int token(int col, int row) {
return array[col][row] }
simply
Hiya, I have been working on a program that looks for 4 in a line in a 2D array. I have made several methods such as
if(token(i,j) == token(i+1,j) {
if(token(i+1,j) == token(i+2,j) {
...