急求!!!如何用Java数组在控制台中输出实现这个效果,哪位大神帮帮忙,求完整代码!
1个回答
展开全部
public class Test1 {
public static void main(String[] args) {
String[][] arr=new String[5][5];
//具体内容自己填
arr[0]=new String[]{"","语文","数学","英语","理综"};
arr[1]=new String[]{"杨坚","100","80","50","30"};
arr[2]=new String[]{"杨坚","100","80","50","30"};
arr[3]=new String[]{"杨坚","100","80","50","30"};
arr[4]=new String[]{"杨坚","100","80","50","30"};
for(int i=0;i<arr.length;i++){
for(int j=0;j<arr[i].length;j++){
System.out.print(arr[i][j]+"\t\t");
}
System.out.println();
}
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询