• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

size of array

 
Isaac Ferguson
Ranch Hand
Posts: 846
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have the next code



then filePerson.length() has a size of 3 (lines in a file) and listId.size() has a size of 2.

then when I compare the j is 3 but the array is 2. I get the excep

What I need to do is if a value which cames from the file it is not in the array then insert it to the DB



But when it read the third value from the file which it is not in the array which contains all the values which already are in the DB it fails



Any advice, please?

Thanks
 
Winston Gutkowski
Bartender
Pie
Posts: 10430
63
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Angus Ferguson wrote:Any advice, please?

Yes, DontWriteLongLines (←click).
It makes your thread very hard to read, which is likely to put people off from responding. I'd correct it myself, but there's quite a lot to be done.
Use the 'Edit' button and break that "SELECT" String up and cool your indenting a bit. You'll be amazed how much easier it is to read.

Thanks.

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic