Here's another one of my best practise tips, whenever you are doing string comparison on constant strings, always call the equals method on the constant to avoid null pointers.



if...