/*
  Write a program that prompts the user to read two integers and displays their
  sum. Your program should prompt the user to read the number again if the
  input is incorrect.
*/

import java.util.Scanner;

public class E12_02 {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    String a, b;
    do {
      System.out.print("Enter two integers: ");
      a = input.next();
      b = input.next();
    } while (!isNumber(a) || !isNumber(b));

    System.out.println("The sum is " +
      (Integer.parseInt(a) + Integer.parseInt(b)));
  }

  public static boolean isNumber(String s) {
    for (int i = 0; i < s.length(); i++) {
      if (!Character.isDigit(s.charAt(i))) { return false; }
    }
    return true;
  }
}

@@ -265,24 +265,35 @@
 g%5B%5D args) %7B%0A
+    do %7B%0A  
     Scanner 
@@ -332,30 +332,18 @@
     
-String a, b;%0A    do %7B%0A
+  try %7B%0A  
     
@@ -392,16 +392,22 @@
 ;%0A      
+  int 
 a = inpu
@@ -404,32 +404,35 @@
 t a = input.next
+Int
 ();%0A      b = in
@@ -425,16 +425,22 @@
 ;%0A      
+ 
+ int 
 b = inpu
@@ -445,24 +445,27 @@
 put.next
+Int
 ();%0A    
 %7D while 
@@ -460,315 +460,167 @@
     
-%7D while (!isNumber(a) %7C%7C !isNumber(b));%0A%0A    System.out.println(%22The sum is %22 +%0A      (Integer.parseInt(a) + Integer.parseInt(
+    System.out.println(%22The sum is %22 + (a + 
 b))
-)
 ;%0A  
-%7D%0A%0A  public static boolean isNumber(String s) %7B%0A    for (int i = 0; i %3C s.length(); i++) %7B%0A      if (!Character.isDigit(s.charAt(i))) %7B return false; %7D%0A    %7D%0A    return 
+    %7D catch (Exception e) %7B%0A        input.reset();%0A        continue;%0A      %7D%0A      break;%0A    %7D while (
 true
+)
 ;%0A  

Use error handling for the solution.