Android中创建二维字符串数组的代码示例
时间: 2024-05-26 20:09:57 浏览: 52
二维数组实例代码
Sure. Here is an example code for creating a 2D String array in Android:
String[][] myArray = new String[3][2];
myArray[0][0] = "Apple";
myArray[0][1] = "Orange";
myArray[1][0] = "Banana";
myArray[1][1] = "Kiwi";
myArray[2][0] = "Grapes";
myArray[2][1] = "Pineapple";
阅读全文