Nov 23, 2004 / Strings' null check in Java

Cool feature that allows you to not write conditions like if ( theString != null && theString.equals("http") ) { ... } It is possible to write just if ( "http".equals(theString) ) { ... } I hope there will be less null checks in my code now.

1 Comments:

At 10:48 PM, Anonymous Anonymous said...

Hello

http://home-insurance-moza.blogspot.com/
See you

 

Post a Comment

Links to this post:

Create a Link

<< Home