I want to iterate a list of Pair objects, but have a few problems. As following variable:
val list: JList[Pair[Integer, Integer]]
for (pair <- list){
//how to get first value and second value of pair instance
}
When I use for with <- to iterate, I can't get Pair instance and can't get properties of Pair.