I'm new to coding and need to make a Yathzee game. I want to initialize only one column in my 2D-array, but can't find how to.
players = p;
String[][] rnc= new String[21][p+1];
for(int i = 0; i < 20; i++){
for(int j = 0; j < p + 1; j++){
rnc[i][0] = {"upper section", "ones", "twos", "threes", "fours", "fives", "sixes", "total", "bonus", "total w bonus", "lower section",
"3 of a kind", "4 of a kind", "full house", "small straight", "large straight", "YATHZEE", "chance",
"total lower section", "total upper section", "grand total"};
This gets an "Array constants can only be used in initializers"-error.