wrxdriven Posted October 13, 2003 Posted October 13, 2003 I am creating a console app for my cd collection I already created a class called CD I am having trouble coming up with the appropriate procedure to do the following. I am not sure what to do from here. I know i want it to recieve the string (which is the location of the cd.txt) and recieve an arraylist full of CD objects. The procedure will create a text file and store all the CD information in the ArrayList to the file in the exact same format as this 128;Heart, Soul & A Voice;Jon Secada;12.99;4;00032.jpg (128 is the call number; then name; then artist;price i paid;quantity;image cover call) If you need more info or if i didn't make myself clear let me know. Thank you all Quote
*Experts* Nerseus Posted October 13, 2003 *Experts* Posted October 13, 2003 Assuming each CD object knows how to save itself (you'll have to code that), you can have the method loop through the arraylist and have each one save itself. Do you need help with filehandling (opening and writing to a file), how to get the CD object to save it's own data, or...? -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
wrxdriven Posted October 14, 2003 Author Posted October 14, 2003 Yeah i need help in a bad way. I am just not that proficient in arraylist and i want to make this work right. Do you have any building blocks or maybe some suggestions as to where to start Thank you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.