Question : get object with list index in scala
Answered by : santhosh-kumar-dhanasekaran
val numbersList = List(1,2,3,4,5)
// this will return 1
numbersList(0)
Source : | Last Update : Sat, 27 Aug 22
Answered by : santhosh-kumar-dhanasekaran
val numbersList = List(1,2,3,4,5)
// this will return 1
numbersList(0)
Source : | Last Update : Sat, 27 Aug 22