object MatchTest1 extends Application { def matchTest(x: Int): String = x match { case 1 =>"one"case 2 =>"two"case _ =>"many" } println(matchTest(3)) }
object MatchTest1 extends Application { def matchTest(x: Int): String = x match { case 1 =>"one"case 2 =>"two"case _ =>"many" } println(matchTest(3)) }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.