Join Slack
Powered by
Is it necessary to escape the dollar sign in a str...
# android
s
Sergio C.
09/13/2022, 4:57 PM
Is it necessary to escape the dollar sign in a string?
"**/R\$*.class"
m
marlonlom
09/13/2022, 7:56 PM
depends of the usecase youre referring
s
Sergio C.
09/13/2022, 8:01 PM
I found this example in a google sample. made no sense to me.
j
Juliane Lehmann
09/14/2022, 8:24 AM
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
10
Views
Open in Slack
Previous
Next