object MatchTest1 extends Application { def matchTest(x: Int): String = x match { case 1 =>"one"case 2 =>"two"case _ =>"many" } println(matchTest(3)) }
Inicia sesión para publicar, seguir contenido y más. ¿Nuevo aquí? Regístrate gratis.