If I write:
def getShort(b: Array[Byte]): Short
in Scala, I get a primitive short text in Java, and that's fine. But if I write:
def getChar (b: Array [Byte]): Char
I get a scala.Char object that does NOT fit. And if I write:
def getChar(b: Array[Byte]): Character
I get java.lang.Character, which is also wrong.
If Scala "Char" is not Java "Char", and Scala "Character" is not Java "Char", then what remains?
source share