You can simply convert the List using Scala’s JavaConverters
:
import scala.collection.JavaConverters._
def findAllQuestion():List[Question] = {
questionDao.getAllQuestions().asScala.toList
}
More Related Contents:
- How to check a list contains substring from other list using scala?
- Convert a Scala list to a tuple?
- Scala list concatenation, ::: vs ++
- Scala: Remove duplicates in list of objects
- How to extend a Scala list to enable slicing not by explicit position but by given predicate/condition
- Difference between a Seq and a List in Scala
- Scala’s ‘::’ operator, how does it work?
- Is there a safe way in Scala to transpose a List of unequal-length Lists?
- Haskell finding mean of cubes of odd members Any ideas? [closed]
- To check whether my list fulfils the parameters set out in nested loop in scala function
- prolog change show answer to print into list
- Elixir lists interpreted as char lists
- Prolog – count repetitions in list
- Combining (cbind) vectors of different length
- Find powers of 2 in a list Prolog
- Flatten a list in Prolog
- How to flatten a list to a list without coercion?
- How can I exclude multiple folders using Get-ChildItem -exclude?
- How can I delete duplicates in a Dart List? list.distinct()?
- Decrementing ranges in Haskell
- Zip with default value instead of dropping values?
- Replace individual list elements in Haskell?
- In Dart, what’s the difference between List.from and .of, and between Map.from and .of?
- How to recursively reverse a list using only basic operations?
- Using Haskell’s map function to calculate the sum of a list
- Need to partition a list into lists based on breaks in ascending order of elements (Haskell)
- Using a Java library with Scala reserved words
- List.shuffle() in Dart?
- How to add variable key/value pair to list object?
- What are the differences between vector and list data types in R?