Shawn
01/26/2019, 8:14 PMDalinar
01/26/2019, 8:17 PMjw
07/28/2019, 3:21 AMdave08
07/28/2019, 2:09 PMdave08
07/28/2019, 2:09 PMchristophsturm
07/29/2019, 9:43 AMNico
07/29/2019, 9:52 AMMarcelus Trojahn
07/30/2019, 3:36 PMMarcelus Trojahn
07/30/2019, 3:36 PMMarcelus Trojahn
07/30/2019, 3:38 PMstandinga
07/30/2019, 4:03 PMSteve
07/30/2019, 6:27 PMSteve
07/30/2019, 6:27 PMGunslingor
07/30/2019, 6:27 PMGunslingor
07/30/2019, 6:29 PMSteve
07/30/2019, 6:29 PMSteve
07/30/2019, 6:29 PMGunslingor
07/30/2019, 6:31 PMTobias
07/30/2019, 6:51 PMGunslingor
07/30/2019, 6:53 PMserebit
07/30/2019, 6:53 PMGunslingor
07/30/2019, 6:54 PMNezteb
07/31/2019, 4:23 PMOpenCSV
and it reads line-by-line of a CSV file via a csvObject.readMap()
. I want to go through and collect each line into a ArrayList
. readMap
is done when it hits a null (empty line). What’s the best way to repeatedly call readMap
and then put the result in an array?
do {
val line = csv.readMap()
csvLines.add(line)
} while (line != null)
this works but then the list has a null in it. i’d rather not have to do two null checks if possible.karelpeeters
07/31/2019, 4:25 PMsequence { csv.readMap() }.toList()
Nezteb
07/31/2019, 4:25 PMjlleitschuh
08/03/2019, 1:21 AMrrader
08/03/2019, 1:46 PMgroostav
08/03/2019, 11:53 PMcorneil
08/06/2019, 6:19 PMthis
and not it
corneil
08/06/2019, 6:19 PM