I have a List
of String
objects that are pipe delimited. something like this:
String1|String2|String3
String4|String5|String6
...
Using Apache POI as excel library, is it possible to iterate over entire List writing out the string object as each row in the excel file? i.e. something like:
for (String inst : <List instance>)
<sheetInstance>.write(inst)
i.e. output the string directly to the excel as a row entry rather than setting each cell value with a string i.e.
setting row 1, cell 1 = String1 setting row 1, cell 2 = String2 setting row 1, cell 3 = String3 setting row 2, cell 1 = String4 ...
Currently, it looks like I need to set individual cells to each value.