java - using only 1 for loop -
Is it possible that 2:
int index = ws.getLastRowNum () + 1; & Lt; AdditiveList & gt; List = New Arrestist & lt; & Gt; (); {List.add (new AdditiveList ()) for (int i = 1; i & lt; index; i ++); } (AdditiveList x: list) {line row = zero; If (rowIterator.hasNext ()) row = rowEterator.next (); X.inputAdditiveData (line); X.outputData (); }
I think this is possible.
Try this -
int index = ws.getLastRowNum () + 1; & Lt; AdditiveList & gt; List = New Arrestist & lt; & Gt; (); For (int i = 1; i
If the rowIterator.hasNext ()
returns incorrectly, then add value to the list of that case. If it is not correct according to need, then you should leave the null as below -
for (int i = 1; i
Comments
Post a Comment