• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

printing message  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to do the following using java language.

The user is to enter some item description. (item code, item weight, item unit price). When the user has finished, he is to enter an item code and the system must retrive the contents of the code if it was entered before. i managed to do all this stuff however I'm finding some problems regarding the user entering a code which is not found in the system.

As shown in the code here under I'm using an array list to store my objects in it. When I'm iterating through the array list and getting the information back, to display the code I'm getting funny results. When the user enters a code which is found in the system,the program is still outputing that no such code exists. Is there a way to by pass this problem please

 
Author and ninkuma
Marshal
Posts: 66823
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please avoid posting in all uppercase. Please read this for more information.

I have adjusted the title for you.
 
jonathan cassar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the correction
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!