please make uml diagram , pseudocode and flowchart
import java.util.InputMismatchException;
import java.util.Scanner;
public class InputMismatch {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int firstNum, secondNum=0;
while(true){
try{
System.out.println(“Enter·an·integer: “);
firstNum = scan.nextInt();
break;
}
catch(InputMismatchException e){
System.out.println(“Please·enter·an·integer”);
scan.next();
}
}
while(true){
try{
System.out.println(“Enter·an·integer: “);
secondNum = scan.nextInt();
break;
}
catch(InputMismatchException e){
System.out.println(“Please·enter·an·integer”);
scan.next();
}
}
int sum = firstNum + secondNum;
System.out.println(“The sum of two numbers is : “+sum);
}
}
Expert Answer
An answer will be send to you shortly. . . . .