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

pratice question on collections from K&B mock exam book

 
Don Redd
Ranch Hand
Posts: 82
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can some please clarify me what below question is asking?

Part two of Question 6a:
Write a class that creates a collection in which a given instance of Items
can be retrieved using a different associated String called "buyer".


Regards,
Don..
 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should show little more energy to copy-paste entire question,i didn't find it sufficient.
 
Pritish Chakraborty
Ranch Hand
Posts: 91
C++ Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is asking you to make a class which defines some collection (which collection is to be used, I am leaving to you), such that an object of Items class is mapped to different String IDs, the variable identifier of which is 'buyer'.
 
Don Redd
Ranch Hand
Posts: 82
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Pritish, I thought "buyer" is associated with identifier string not the name of Collection(map
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic