Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Position literals first in String comparisons - that way if the String is null you won't get a NullPointerException, it'll just return false.
New to GrepCode? Check out our FAQ X