Remove character from string in Kotlin

The replace() method is designed to return the value of the new String after replacing the characters. In your case, the value obtained after replacing the characters is never reassigned back to the original variable.

Specifically in your else clause, the line should be changed to –

buClickValue = buClickValue.replace(".", "")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)