Looking over code examples in my lecture slides, I notice this:
c = head();
s = null;
while (c <> null && s == null) {
if (c.value().matches("33812"))
s = c
c = next
}
Whilst I understand basically what the code does, I don’t understand this particular part of the while loop condition “c <> null”.
Thanks in advance!
It’s almost certainly just a typo/braino for
!=(“not equal to”).<>is used in Basic and SQL, but not in any C-like language I’m familiar with.