MCQs > IT & Programming > Scala > Correct example of using toArray to convert to an array and toList to convert to a list?

Scala MCQs

Which one of the following is a correct example of using toArray to convert to an array and toList to convert to a list?

Answer

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

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it