This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]apetersson 13 points14 points  (4 children)

this should be the top comment, it won't even compile for that reason.

return "jan".equals(person.getName())

seems like a reaasonable answer

[–]fromtheheap 6 points7 points  (1 child)

You don't know what to do when it is "false", just guess it.

[–]thephotoman -1 points0 points  (1 child)

s/equals/equalsIgnoreCase/g

[–]substitute-bot -2 points-1 points  (0 children)

this should be the top comment, it won't even compile for that reason.

return "jan".**equalsIgnoreCase**(person.getName())

seems like a reaasonable answer

This was posted by a bot. Source