I have this Scala method with below error. Cannot convert into a Scala list.
def findAllQuestion():List[Question]={ questionDao.getAllQuestions() }
You can simply convert the List using Scala's JavaConverters:
JavaConverters
import scala.collection.JavaConverters._ def findAllQuestion():List[Question] = { questionDao.getAllQuestions().asScala }