To use the example of reading a ResultSet in partial pseudo-code:
Product[] myArray = new Product[somesize];
int count = 0;
while ( resultSet.next() ){
Product p = new...
Type: Posts; User: copeg
To use the example of reading a ResultSet in partial pseudo-code:
Product[] myArray = new Product[somesize];
int count = 0;
while ( resultSet.next() ){
Product p = new...
While looping through the ResultSet, don't reuse the same object unless you've got reason to do so. Creating a new one for each row you read from the ResultSet will solve this issue - currently, each...