The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


RE: Array length might help

Posted by Kishori Sharan on September 15, 2000 at 11:43 AM

I don't know exact problem you are trying to solve ( or fine tune the solution you already have ); but I think that after the recordNum value ( 2nd element ) the same no of elements ( say 4 ) will be repeated for every record. So, if recordNum value is 31 then the array length should be 2 ( initial elements ) + 4 * 31 . So if you check just the length of the array then it will tell you if you have the data for all the record. This solution applies only when record storing pattern is same after the second element in your array.



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us