Is it necessary to escape the dollar sign in a str...
# android
s
Is it necessary to escape the dollar sign in a string?
"**/R\$*.class"
m
depends of the usecase youre referring
s
I found this example in a google sample. made no sense to me.
j
Both in Java and in Kotlin, dollar sign needs to be escaped if you want literal dollar sign (which in this context, you probably want).
👍 1