Answers for "scala string get char"

0

scala string get char

scala> "hello"(0)
res1: Char = h

scala> "hello"(1)
res2: Char = e
Posted by: Guest on May-26-2021

Browse Popular Code Answers by Language