📜  字符串可以在java代码示例中的二维数组中使用吗

📅  最后修改于: 2022-03-11 14:52:28.808000             🧑  作者: Mango

代码示例1
String myTwoDimensionalStringArray[][] = new String[2][2];
myTwoDimensionalStringArray[0][0] = "Apple";
myTwoDimensionalStringArray[0][1] = "Banana";
myTwoDimensionalStringArray[1][0] = "Pork";
myTwoDimensionalStringArray[1][1] = "Beef";