logo Practice-It logo

ProcessName2

Language/Type: Java input Scanner
Author: Marty Stepp (on 2011/10/23)

Modify your solution to the previous ProcessName exercise so that it re-prompts until the user types a name that is at least 5 letters total in length and has at least one space in it. For example:

Type your name: Joe
Error, must be at least 5 chars with a space.
Type your name: O K!
Error, must be at least 5 chars with a space.
Type your name: what
Error, must be at least 5 chars with a space.
Type your name: Tyler Durden
Your name is: Durden, T.
Type your solution here:


This problem asks for bare code. Submit a fragment of Java code as described. Do not write any class or method heading around your code; just write the lines of code that will produce the result described.

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.