• Post Reply Bookmark Topic Watch Topic
  • New Topic

Store Simulation using ArrayList not working  RSS feed

Zia Ibrahim
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!