MCQs > IT & Programming > Scala > How to return a value from a scala function?

Scala MCQs

How to return a value from a scala function?

Answer

Correct Answer: private def checkValu() : Option[Integer] = { if(!list.isEmpty()){ for(value <-list){ val x = list.get(0) } } return (x) }

Explanation:

Note: This question has more than 1 correct answers

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