Create a tuple by enclosing the desired elements between parentheses. This is a two-element tuple: scala> val d = ("Debi", 95) d: (String, Int) = (Debi,95).
確定! 回上一頁