Hide Scala readline () input

Viewed 39
println(
"""
    |Enter your name:
    |""".stripMargin)

val myname =scala.io.StdIn.readline()

I want the input of the user to appear as ***** so that its not visible to other users.

0 Answers
Related