Reputation: 1
I have an Array[Byte]
and I want to convert it to an Array[Int]:
for example,
val x : Array[Byte] = Array(192.toByte, 168.toByte, 1.toByte, 9.toByte)
val y : Array[Int] = Array(192, 168, 1, 9)
How can I convert x to y ?
Upvotes: 0
Views: 1346