例如:Object[][] books={{1,"html5"},{2,"java"},{3,"linux"},{4,"javascript"},{5,"cisco"}};
2 回答
丶小八戒
TA贡献18条经验 获得超7个赞
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/150
提交
取消
