object MatchTest1 extends Application { def matchTest(x: Int): String = x match { case 1 =>"one"case 2 =>"two"case _ =>"many" } println(matchTest(3)) }
Sign in to post, follow content, and more. New here? Register for free.