JDoodle

Easy and Quick way to run Scala Code Online

Scala
Version - 2.12.0
Project Name :
Your Code ...
object MyClass { def add(x:Int, y:Int) = x + y; def main(args: Array[String]) { print("sum of x + y = " + add(25,10)); } }
Interactive mode :
Stdin Inputs...
Result...
compiled and executed in second(s)
Hint - Press Ctrl+Space or Alt+Space for Auto Complete.
Your valuable inputs will help us improve this site
please give your comments. Thanks.
Which language would you like to see next in JDoodle?
Comments/Suggestions/Inputs...
Please Login to use this option....