Why won't this statement compile?

if (inputString.substring(51, 53) !* ",,") {

I get a "Compilation error: expected ")" before "!" token".

If I switch the "!*" operator for "==" or "<" for example, it works.

if (inputString.substring(51, 53) == ",,") {

compiles.

Can't figure out what the difference could be...

did you mean "!=" instead?? not equal..

~q

1 Like

Oh my. The characters on my printed "Programming Cheat Sheet" are so small, I misread the "=" for "*". :blush:

Thanks!

2 Likes

Your topic does not indicate an IDE problem and hence has been moved to a more suitable location on the forum.

You can mark your topic as "solved" by clicking the checkbox under the most useful post.

I know the feeling :frowning:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.