Example code:
object test {
def main(args: Array[String]) {
println(args(0).toChar)
}
}
I have two arguments. The first one is a single letter, whereas the second one is a sequence of letters.
How can I convert the first string argument to Char? I tried the toChar function, but without success (error: value toChar is not a member of String).