package shuzu;
public class A {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("[");
int[] a=new int[]{1,2,3,4,5};
for(int i:a){
System.out.print(i+",");
}
System.out.print("]");
}
}
package ershuzu;
import java.util.Scanner;
public class A2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
String [][] a=new String[2][3];
Scanner input=new Scanner(System.in);
for(int m=0;m<2;m++){
int n=0;
System.out.print("请输入学生姓名:");
a[m][n]=input.next();
System.out.print("请输入学生学号:");
a[m][n+1]=input.next();
System.out.print("请输入Java基础成绩:");
a[m][n+2]=input.next();
}
for(String []i:a){
for(String j:i){
System.out.print(j+"\t");
}
System.out.println();
}
}
}