Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tough problem need help

 
salem salman
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
salem salman
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic