public class B{
public static void main(String[] args) {
// 定义两行三列的二维数组并赋值
String[][]names={{"tom","jack","mike"},{"zhangsan","lisi","wangwu"}};
// 通过二重循环输出二维数组中元素的值
for (String[] a:names) {
for (String[] b:names) {
System.out.println(a+b );
}
System.out.println();
}
}
}
qq___524
相关分类