import java.util.*;
public class As {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
try{
int i;
int []a =new int [6];
System.out.println("请输入整数");
for(i=0;i<6;i++){
a[i]=in.nextInt();
}}
catch(InputMismatchException e){
System.out.println("请输入整数");
e.printStackTrace();
}
catch (ArrayIndexOutOfBoundsException e) {
System.out.println("请输入5个整数");
e.getMessage();
e.printStackTrace();}
finally{
System.out.println("感谢使用本程序");
}
}
}
public class As {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
try{
int i;
int []a =new int [6];
System.out.println("请输入整数");
for(i=0;i<6;i++){
a[i]=in.nextInt();
}}
catch(InputMismatchException e){
System.out.println("请输入整数");
e.printStackTrace();
}
catch (ArrayIndexOutOfBoundsException e) {
System.out.println("请输入5个整数");
e.getMessage();
e.printStackTrace();}
finally{
System.out.println("感谢使用本程序");
}
}
}