what do i have 2 do now? : ok i got the same problem as this guy who asked this..

I want to code some basic stuff for a little minesweeper-game, that we do in university. Now I have the problem that my code

`enter code here`public class Minesweeper1 {

     public static int[][]  makeRandomBoard(int s, int z, int n){

  
      int feld[][] = new int [s][z];
       for(int i = 0; i < s; i++){
         for(int j = 0; j < z; j++){
            feld[i][j] = 0;}}
      for(int i = 0; i < n; i++){
      selectRandomPosition(s, z);
      feld[randomHeight][randomWidth] = 1;
  }
}

so it starts the selectRandomPosition code:


    public static int[] selectRandomPosition(int maxWidth, int maxHeight) {
    int randomHeight = StdRandom.uniform(0, maxHeight);
    int randomWidth = StdRandom.uniform(0, maxWidth);
    return new int[]{randomHeight, randomWidth};

Here I am not allowed to change anything, but it returns a new array. Now is my question how I can use the new array in my makeRandomBoard-method, since I do not know any name of the array. When I use "feld[randomHeight][randomWidth] = 1;" it says, that it does not know these variables.

And he did get the answer:
Call the method, and assign its return value to a variable. Now you have a name for the array:

    
    

    `enter code here`// Make a call
    int[] randomArray = selectRandomPosition(maxW, maxH);
    // Access the width
    int randomW = randomArray[0];
    // Access the height
    int randomH = randomArray[1];

but what do i have to write now?
i tried it with:
   feld[randomW][randomH] = 1;
but it seems like it doesnt work,also i need a return statement.. can anyone help me out pls ? :(