How to return a value from a scala function?
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
More Scala MCQ Questions