You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the incorrect code str.IndexOf("x") where "x" is a string constant consisting of one character, suggest the fix str.IndexOf('x'), which performs an ordinal search.
The text was updated successfully, but these errors were encountered:
For the incorrect code
str.IndexOf("x")
where"x"
is a string constant consisting of one character, suggest the fixstr.IndexOf('x')
, which performs an ordinal search.The text was updated successfully, but these errors were encountered: