Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27540
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-02-18 00:02 -0800 |
| Message-ID | <84e80bea-7033-4c67-99f8-d6af76b47326@googlegroups.com> (permalink) |
| Subject | problem using string array of list. |
| From | Navneet Mathpal <navneetmathpal93@gmail.com> |
hi,
i was trying to use follwing code:-
int siz= csvReader.readAll().size();
for(int i=1;i<= siz;i++)
{
row = csvReader.readNext();
collection.insert(new BasicDBObject("_id",i).append("search term",row[0]).append("search id",row[1]).append("result",row[2]));
}
i am trying to run code <=siz but it is showing an exception and data is not getting insert .
but in case i am using integer value instead of siz it running fine.
any suggestion?
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
problem using string array of list. Navneet Mathpal <navneetmathpal93@gmail.com> - 2014-02-18 00:02 -0800 Re: problem using string array of list. Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2014-02-18 09:40 +0000
csiph-web