Hi all, I'm having a little trouble getting my head around
I'm not entirely sure what its telling me to do.Code:static void fill(char[] a, char val)]
This is the section of code containing this:
From what i've gather i type "char[]" then the name of array im filling "twoDimGrid" then i use a comma and enter char val. So i type "char ' '" However i get errors on eclipse saying:Code:public static class Grid
{
Grid[][] twoDimGrid = new Grid[31][31]; // 31x31 grid
private static void fill(char[] twoDimGrid, char ' ');
void print(){System.out.println(this.twoDimGrid);}
}
Syntax error on token "' '", invalid VariableDeclaratorld
I have no idea what this means, if i cant use a space as a char what else should i use for my grid?

