In: Computer Science
Write a Java program that creates a three-dimensional array. Populate each element with a string that states each coordinate position in the array.
public class TestCode { public static void main(String args[]){ String arr[][][] = { { {"string111", "string112", "string113"}, {"string121", "string122", "string123"} }, { {"string211", "string212", "string213"}, {"string221", "string222", "string223"} } }; for(int x = 0;x<arr.length;x++){ for(int y = 0;y<arr[x].length;y++){ for(int z = 0;z<arr[x][y].length;z++){ System.out.println("Value at("+x+","+y+","+z+") is "+ arr[x][y][z]+" "); } } } } }