@@ -0,0 +1,851 @@
+import java.util.Scanner;%0A%0A/**%0A * %3Cdl%3E%0A * %3Cdt%3EPurpose:%0A * %3Cdd%3ESimple example program%0A *%0A * %3Cdt%3EDescription:%0A * %3Cdd%3EThis program asks prompts user for name until it's entered correctly%0A * %3C/dl%3E%0A *%0A */%0A%0Apublic class NameValidation %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Scanner sc = new Scanner(System.in);%0A%09%09System.out.println(%22What is your name?%22);%0A%09%09String name = %22%22;%0A%0A%09%09// prompts user for name; re-prompts if nothing or 1 character have been entered%0A%09%09while (name.isEmpty() %7C%7C name.length() %3C 2) %7B%0A%09%09%09name = sc.nextLine();%0A%0A%09%09%09if (name.isEmpty()) %7B%0A%09%09%09%09System.out.println(%22Fine, don%E2%80%99t tell me your name. Try again!%22);%0A%09%09%09%7D%0A%0A%09%09%09else if (name.length() %3C 2) %7B%0A%09%09%09%09System.out.println(%22Not your initial, your name please ;)%22);%0A%09%09%09%7D%0A%0A%09%09%09else %7B%0A%09%09%09%09System.out.println(%22Hello! I thought that your name might be %22%0A%09%09%09%09%09%09+ name + %22!%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create NameValidation.java