Sorry. My stupid email client dropped some carriage returns. Example 1: ---------- String formcomments = attr.getFormComments();
formcomments = (formcomments == null) ? "" : formcomments; Example 2: ---------- String formcomments = (attr.getFormComments()== null) ? "" : attr.getFormComments(); T O N Y S P E N C E R Notsleepy LLC 6512 Six Forks Rd. Suite 502-B Raleigh, NC 27615 Phone: 919.848.0691 Mobile: 415.637.6481 [EMAIL PROTECTED] > -----Original Message----- > From: Tony Spencer [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 2:15 PM > To: 'Research Triangle Java User's Group mailing list.' > Subject: Which is more efficient? > > Which of these examples is better practice or does not not > really matter? > > Example 1: > > String formcomments = attr.getFormComments(); formcomments = > (formcomments == null) ? "" : formcomments; > > > Example 2: > String formcomments = (attr.getFormComments()== null) ? "" : > attr.getFormComments(); > > > > T O N Y S P E N C E R > Notsleepy LLC > 6512 Six Forks Rd. > Suite 502-B > Raleigh, NC 27615 > Phone: 919.848.0691 > Mobile: 415.637.6481 > [EMAIL PROTECTED] > > _______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
