object MatchTest1 extends Application { def matchTest(x: Int): String = x match { case 1 =>"one"case 2 =>"two"case _ =>"many" } println(matchTest(3)) }
Přihlaste se pro psaní příspěvků, sledování obsahu a další. Jste tu noví? Zaregistrujte se zdarma.