A similarly written code will work but only if there is a single array. When I try this using multidimensional arrays, it tells me that it cannot be converted from an array to a string.
Why is this happening?
What direction can I take to learn how to solve his problem?
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        String[][] sentence = new String[3][2];
        Scanner scaninput = new Scanner(System.in);
        for (int row = 0; row < sentence.length; row++) {
            for (int col = 0; col < sentence[row].length; col++) {
                System.out.println("Enter some words: ");
                sentence[row][col] = scaninput.nextLine();
            }
        }
        for (String sentences : sentence) {
            System.out.println(sentences + " ");
        }
    }
}