猿问
怎么查询二维数组中的值
例如:Object[][] books={{1,"html5"},{2,"java"},{3,"linux"},{4,"javascript"},{5,"cisco"}};
头像已舔屏
浏览 1202
回答 2
2回答
丶小八戒
for (int i = 0; i < books.length; i++) { for (int j = 0; j < books[i].length; j++) { System.out.print(books[i][j] + " "); } System.out.println(); }
0
0
2
随时随地看视频
慕课网APP
相关分类
Java
我要回答