Which one of the following is a correct example of using toArray to convert to an array and toList to convert to a list?
Correct Answer: scala> buf.toArray res13: Array[Int] = Array(12, 15) scala> buf.toList res14: List[Int] = List(12, 15)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions