aspose file tools*
The moose likes Beginning Java and the fly likes passing array values to query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "passing array values to query" Watch "passing array values to query" New topic
Author

passing array values to query

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 271
I have following text data in a pipe | delimitted text file

999|5555|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
998|5554|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
997|5553|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
996|5552|6666|PPP|9/9/2009 15:49|1444-AAA_111|FINISH
I am reading above data into String array called rows.

Then i am calling following method like below from main method
checkDatabases(rows);

The implementation code of checkDatabases(rows) is as below


Preferably without using java 1.5 generics is much good as server is running on java 1.4.
Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11420
    
  16

Please don't post your entire message inside code tags. Code should go in there. Your comments should be outside them, so they show up normal.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 271
sure.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
And please don’t post such long lines; they are very difficult to read.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8008
    
  22

sai rama krishna wrote:...Preferably without using java 1.5 generics is much good as server is running on java 1.4...
Any ideas, suggestions, sample code, links, source code highly appreciated.

I have one: UPGRADE.

This from Sun's webpage (which alone should tell you how old it is):
"Java SE 5.0 is in its Java Technology End of Life (EOL) transition period. The EOL transition period began April 8th, 2007 and will complete October 8th, 2009, when Java SE 5.0 will have reached its End of Service Life (EOSL)."

And that is a full version after the one you're running. I was using Java 1.4 in 2001.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 271
sure
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: passing array values to query