I am a new learner of scala and I am coding a simple scalafx calculator and now I face a problem. I cannot find another suitable code to replace the parseDouble. I know the parseDouble is the member of java double, not scala double. I just put the code here to express my thoughts. Can someone help me to fix the code?

How to fix this code? Enable the java parseDouble in scalafx program
56 views Asked by kxaio1117 At
1
You can invoke the Java parser directly...
...or you can use the Scala
.toDouble.