View Single Post
Old 01-25-07, 10:56 PM   #9
Marvel_us's Avatar
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
Default Re: Sigh, Java HW Help

Originally Posted by Cinema4DXL
that wouldnt be the best way to do it. if your going to have a multiple customers, your going to need to create a list or array possibly to store each unique customer. the way you have it now everytime the user enters information it will recreate the cust1 Customer object (destory anything you previously entered)

but i cant be sure since i dont know the scope of your project
Thanks but I've actually got past that. I created an array to store the objects and looped the prompts so the user controls when they are done entering customers.

Problem I'm having now is how to print the array using jOptionPane.
Main Rig
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU ||

60gb PS3 Owner
PSNid: Marvel_us
Marvel_us is offline   Reply With Quote