View Single Post
  #16 (permalink)  
Old 09-13-2008, 08:38 PM
Nicholas Jordan's Avatar
Nicholas Jordan Nicholas Jordan is offline
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 879
Nicholas Jordan is on a distinguished road
Beverage[][] should be a list of Pairs. int[] prices should be a member variable of class whateveritisyouareselling. main(String[] args) is in class machine so we don't need a Main class, and if this is a student project using static factory methods to get a AccountRepository, basically what you need to do is focus on the comment in the code:
Code:
//getAccount must match the account ID that it gets as a parameter //against the stored accounts and return the first matching account. //This is code that you must add to the starter code.
and getting 171 to load.

Probably use the Account that is already constructed, usually one does not new an account at this study level - doing so would be some pretty sophisticated security reason of some kind and is not likely what your instructor wants to achieve right now. It looks like sorting and searching are the objectives today.

Is this college work or advanced placement?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Reply With Quote