how to replace a character in a string in scala
// Scala program of replace()
// method
// Creating object
object GfG
{
// Main method
def main(args:Array[String])
{
// Applying replace method
val result = "Nidhi".replace('N', 'n')
// Displays output
println(result)
}
}