package imooc;
import java.util.Arrays;
public class wh {
public static void main(String[] args) {
String[][] names={{"tom","jack","mike"},{"zhangsan","lisi","wangwu"}};
// 通过二重循环输出二维数组中元素的值
for (int i = 0; i < names.length ; i++) {
for (int j = 0; j < names[i].length; j++) {
System.out.print( Arrays.toString(names));
}
System.out.println();
}
}
}
海蓝月
2014-10-15
2 回答
举报
0/150
提交
取消