Here is an example of instantiating and accessing members of a two dimensional String
array.
public class TwoDimensionalArray {
public static void main(String[] args) {
String[][] array = new String[2][];
array[0] = new String[2];
array[0][0] = "apple";
array[0][1] = "cherry";
array[1] = new String[2];
array[1][0] = "banana";
array[1][1] = "grape";
System.out.println(array[0][0]);
System.out.println(array[0][1]);
System.out.println(array[1][0]);
System.out.println(array[1][1]);
}
}
This program outputs
apple
cherry
banana
grape