Hi, I am writing a program for a warehouse stock inventory. One of the requirements is to have a program that updates the stock levels (sold/bought). I'm using using binary files for this. Is there anyway apart from using arrays to update the stock? (i was wondering if there was anything more memory efficient?) Thanks, T.C [This message has been edited by Tony Cossie (edited April 12, 2001).]
That is what databases were made for. Surely you have an Access or Oracle database around somewhere? If not you should seriously think about getting one, it will make you life much easier and more efficient.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Mar 11, 2001
Oh i know about databases. but this is a programming assignment i have to do. I think i have it figured out now though. I cannot use Access, Oracle or SQL or anything of that ilk
Arrays or in-memory objects are probably not the best choice if the data needs to be persistent. For simple applications, java.io.RandomAccessFile works fine. ------------------ Phil Hanna Author of : JSP: The Complete Reference Instant Java Servlets
Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>