Two Laptop Bag
The moose likes Beginning Java and the fly likes Store Simulation using ArrayList not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Store Simulation using ArrayList not working" Watch "Store Simulation using ArrayList not working" New topic
Author

Store Simulation using ArrayList not working

Zia Ibrahim
Greenhorn

Joined: Jan 11, 2005
Posts: 1
Hello,

I need help with my Store Simulation program using ArrayList. I got three problems:

- I keep getting NullPointerException when i try to displayed the contents of my basket from Order class?
- How do get the subtotal for each item and have it displayed in Basket and Order class?
- how do i do a search method that will display a list of similar items (when it is not found in the ItemsList) in Catalogue class?

This is my first JAVA assignment and I have been at this assignment for two 1/2 weeks. Makes me feel so stupid for not getting it.

I would like to attach the offending codes, however, it is too long, so please2x someone email me and advice me on how to solve this sticky problem. The presentation is on Thursday and i am resigned to at least this text version working.

If i have missed some finer points somewhere, please feel free to comments, advice and show me on how to be better.

Thanks.

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Store Simulation using ArrayList not working
 
Similar Threads
ArrayList does it maintain order
Type Erasure
messages in HTML pages
RESTful best approach
programming to the interface