Hugh Allen wrote:

I ALWAYS put code that is dependent on an if statement in a block with braces.

String formcomments = attr.getFormComments();
if (formcomments == null)
{    formcomments = "";
}

Later, you may want to add more code that is part of the if logic, such as a debugging statement or a return.


Not only that, but you got the curly braces in the right place too! :-)

TTYL,

Phil
--
Vote Badnarik for President 2004
www.badnarik.org

FREE AMERICA
Vote Libertarian
www.lp.org

_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to