@@ -0,0 +1,625 @@
+package week8;%0A%0Aimport java.util.InputMismatchException;%0Aimport java.util.Scanner;%0A%0Apublic class VideoWhileIntegerCheck %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09Scanner scanner = new Scanner(System.in);%0A%09%09%0A%09%09int userVal = -1;%0A%09%09%0A%09%09while(userVal %3C 0) %7B%0A%09%09%09try %7B%0A%09%09%09%09%0A%09%09%09%09System.out.println(%22Please enter a positive integer: %22);%0A%09%09%09%09%0A%09%09%09%09userVal = scanner.nextInt();%0A%09%09%09%09%0A%09%09%09%7D catch (InputMismatchException ex) %7B%0A%09%09%09%09//System.out.println(ex);%0A%09%09%09%09scanner.next();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09// user entered a valid value.%0A%09%09%0A%09%09System.out.println(%22user entered: %22 + userVal);%0A%09%09System.out.println(%22Done!%22);%0A%09%09%0A%09%09scanner.close();%0A%09%7D%0A%0A%7D%0A

Create VideoWhileIntegerCheck.java