private boolean hasUpperCase( String str )
{
int strLen;
if ( str == null || ( strLen = str.length()) == 0 )
return false;
for ( int i = 0; i < strLen; i++ )
{
if (Character.isUpperCase( str.charAt( i ) ))
return true;
}
return false;
}Add a code snippet to your website: www.paste.org