Answers for "scala read user input int"

0

how to take user input in Scala

/*
This is for SCALA!

Anyways, lets say you want to get the user's name. How will you get it? 
This is how you will do it:
*/
var name: String = ""
name= readLine("What's your name?") //getting the input!

println("Hello, "+name)
Posted by: Guest on January-30-2021
0

scala read input

scala.io.StdIn.readLine()
Posted by: Guest on August-05-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language