import java.io.*;
public class shuru {
public static void main(String[] args) {
System.out.println("请输入两个整数:");
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
do{
try{
int a=Integer.parseInt(in.readLine());
int b=Integer.parseInt(in.readLine());
}
catch(Exception e){
System.out.println("您输入有误请重新输入:");
}
}while(true);
}
}
能不能具体一点,最好写一下程序代码,谢谢!!