import java.util.Scanner;
public class Tset {
public static void main(String[] args) {
System.out.println("请输入三个数:");
Scanner in = new Scanner(System.in);
int[] b=new int[3];
for(int i=0;i<b.length;i++){
b[i]=in.nextInt();
}
//遍历
for(int i=0;i<b.length;i++){
System.out.println("b["+i+"]="+b[i]);
}
}
}
记得,输入一个数按下回车键