java - Searching for a '$' in a string -


how can make working. want check if string contains $ sign.

if(messagesuccess.îndexof('$')>0) 

this error getting:

no signature of method: java.lang.string.îndexof() applicable argument types: (java.lang.string) values: [$] 

thanks

you invoking method not exist :îndexof() change indexof(), change î i


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -