...
This noncompliant code example defines an isProperName
()
method that returns true of if the specified String
argument is a valid name (two capitalized words separated by one or more spaces).
...
This compliant solution includes the same isProperName()
method implementation as the previous noncompliant example, but it is now a private method with only one caller in its containing class.
...