Hello,
found these lines in a codereview...
if (lastName.charAt(0) == new String("*").charAt(0) || lastName.charAt(0) == new String("%").charAt(0)) { ......... }
regards Bernd
Gack!
Impressive :-) How about this one?
if ( longName == null) { org.setLongName(null); } else { org.setLongName(longName); } if (shortName == null) { org.setShortName(null); } else { org.setShortName(shortName); } // and so on ...
Lovely!
interested
Log in to post a comment.
Hello,
found these lines in a codereview...
if (lastName.charAt(0) == new String("*").charAt(0)
|| lastName.charAt(0) == new String("%").charAt(0)) {
.........
}
regards
Bernd
Gack!
Impressive :-) How about this one?
if ( longName == null)
{
org.setLongName(null);
}
else
{
org.setLongName(longName);
}
if (shortName == null)
{
org.setShortName(null);
}
else
{
org.setShortName(shortName);
}
// and so on ...
Lovely!
interested