会java的朋友帮忙做下这道题,谢谢!:
3个回答
展开全部
题目呢。。。。
追答
public static void main(String args[]){
String[][] aa = {{"组别","种子队","第二档","第三档","第四档"}
,{"A组","巴西","喀麦隆","墨西哥","克罗地亚"}
,{"B","b","b","b","b"}
,{"C","c","c","c","c"}
,{"D","d","d","d","d"}
,{"E","e","e","e","e"}
,{"F","f","f","f","f"}
,{"G","g","g","g","g"}
,{"H组","h","h","h","h"}};
for(int i=0;i<aa.length;i++){
for(int j=0;j<5;j++){
if(j!=4){
System.out.print(aa[i][j] + " ");
}else{
System.out.println(aa[i][j]);
}
}
}
}
展开全部
把数组补齐再放到执行的方法中就行啦
String ns[][]={{"巴西","科迈隆" ,}{},{},};String zm[]={"A组","B组",};String title[]={"组别","种子队",};for(int i=0;i<5;i++)System.out.println(title[i]+"\t");for(int i=0;i<8;i++){if(i==0)system.out.print(zm[i]+"\t");for(int j=0;j<4;j++)System.out.print(ns[i][j]+"\t");System.out.println();}
String ns[][]={{"巴西","科迈隆" ,}{},{},};String zm[]={"A组","B组",};String title[]={"组别","种子队",};for(int i=0;i<5;i++)System.out.println(title[i]+"\t");for(int i=0;i<8;i++){if(i==0)system.out.print(zm[i]+"\t");for(int j=0;j<4;j++)System.out.print(ns[i][j]+"\t");System.out.println();}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这个不难啊。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询