Is there a method to convert a var
to Int
in Scala?
Suppose I have:
var noOfConcurrentUsers = sys.env.get("NumberOfConcurrentUsers");
// I need the following
var userNo = noOfConcurrentUsers //some method
I am getting the variable as an environment variable in String
format from Jenkins
.
Getting error:
Cannot resolve symbol toInt