object MainObject { def main(args: Array[String]) { val result = checkIt(-10) println (result) } def checkIt (a:Int) = if (a >= 0) 1 else -1 }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more