Fill in the Comparator (Solution)
10 != 5. So there’s a lot of different solutions to all of these exercises, all right? You just want to put in some Boolean comparator that makes this expression be
True. The next one we have is that
"jill" get compared, and we want to know how we can make this expression
True. So I would say for the fun of it, let’s avoid using the
!= (not equals) comparator, which would also return
The first one is the same, but the second one in
"jack" has a lower index than the one in the right string. And then we also compared
42, the integer, to the string
"42" and said that these two are not equal to each other. Great, so you’re getting warmed up a little. Let’s ramp up the difficulty a little bit.
Become a Member to join the conversation.