This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
basically i m trying to make a program for books inventory... ... and this is my inventory class shown above~~~ as you see, i got some codes for listing book, adding new book, removing.. ...and so on... ... and now i want to write some codes for searching: when i enter name of book, its price ll be shown... ... so firstofall, i need to create such searching thing in my inventory class.. ...
I think his point was that you should try it yourself, and ask specific questions. Look up linear search and binary search algorithms and try to implement one of those, and if you have specific questions ask. Linear search is easier to start off with. Your question is to general to be able to properly answer it without doing the work for you.
A linear search is very simple. Start at the beggining of the data structure, see if it is what you are looking for, if not move to the next element. Rinse and repeat until you get to the end of the ArrayList. [ March 22, 2006: Message edited by: Rusty Shackleford ]
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com