File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes tough problem need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "tough problem need help" Watch "tough problem need help" New topic
Author

tough problem need help

salem salman
Greenhorn

Joined: Oct 08, 2002
Posts: 9
hi
i am having a problem with this program the program does not print what i enterd it just takes the info but i can't get it to print what the user asked for i highlited some of the problems using *** it means i think the problem is here:
now ther is a nother class called Store.java i will put it under the main program.

[ November 26, 2002: Message edited by: salem salman ]
[ November 28, 2002: Message edited by: Marilyn de Queiroz ]
salem salman
Greenhorn

Joined: Oct 08, 2002
Posts: 9
here are example of the print i should get:

Please enter match type ('exact' or 'wild') or 'exit': wild
Please input the store type: book
Please input the store name:
Please input an item type:
"The Bookworm": book store selling books, located on floor 1, #5.
"Kohl's": book store selling books, located on floor 3, #2.
2 matches printed.
Please enter match type ('exact' or 'wild') or 'exit': wobble
Unknown match type. Using wildcard.
Please input the store type:
Please input the store name: orium
Please input an item type:
"The Emporium": gift store selling ceramics, located on floor 1, #3.
"The Wombatorium": specialty store selling stuffed wombats, located on floor 3, #3.
2 matches printed.
Please enter match type ('exact' or 'wild') or 'exit':
Please input the store type:
Please input the store name:
Please input an item type: art
"The Hollow Tree": gift store selling art, located on floor 2, #8.
1 match printed.
Please enter match type ('exact' or 'wild') or 'exit': WILD
Please input the store type: department
Please input the store name: HUDSON
Please input an item type: cloth
"Hudson's Bay Company": department store selling clothing, located on floor 1, #1.
1 match printed.
Please enter match type ('exact' or 'wild') or 'exit': wild
Please input the store type: entertainment
Please input the store name:
Please input an item type:
"Sam's": entertainment store selling CDs, located on floor 1, #11.
"HMV": entertainment store selling CDs, located on floor 3, #1.
"Ars Electronica": entertainment store selling guitars, located on floor 3, #7.
3 matches printed.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Well your method 'printSearchResults()' doesn't have any code in it. That might be a problem, not sure.
Unless I am confused by your question, you want someone to write this method for you. Is that correct? Or are you asking something else?


Please ignore post, I have no idea what I am talking about.
salem salman
Greenhorn

Joined: Oct 08, 2002
Posts: 9
hi
thanx barnes for replying, please i would appreciate it if you write the code and explain it i tried but i still can't understand it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tough problem need help