Replaced for loops with enhanced for loops.
This commit is contained in:
@@ -97,9 +97,9 @@ public class PetNameTable
|
||||
{
|
||||
boolean result = true;
|
||||
final char[] chars = text.toCharArray();
|
||||
for (int i = 0; i < chars.length; i++)
|
||||
for (char aChar : chars)
|
||||
{
|
||||
if (!Character.isLetterOrDigit(chars[i]))
|
||||
if (!Character.isLetterOrDigit(aChar))
|
||||
{
|
||||
result = false;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user