79103676

Date: 2024-10-18 21:10:24
Score: 4
Natty:
Report link

I agree with the top answer, but equalsIgnoreCase also has a null-check to make sure your code doesn't throw an exception if the comparing string is null. Also - the tools are out there, why not use them instead of making your own?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: countinglambdastosleep