Hi, anyone know why I am getting this as an error ...
# getting-started
t
Hi, anyone know why I am getting this as an error in kotlin but not in java? It is not allowing project to build either
n
kotlin offers string interpolation with the
$
sign hence, if you use
$
in a string kotlin will expect the next characters to be a variable name
d
t
Ha I see, is there a way I can achieve the same thing?
d
You need to escape the `$`:
\$
t
Thanks
Lol.. I have used the string interpolation a million times but it did not come to my mind in this use case