• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I retrieve the first item in a list under a certain value?  RSS feed

 
David Vach
Ranch Hand
Posts: 105
3
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, so what I am trying to do is make a bargain customer class that purchases the first item in a list under the amount that customer has to spend. However, I am getting an error that "Some messages have been simplified; recompile with -Xdiags:verbose to get full output." I'm not completely sure whats wrong, but I need to make sure I have the money left over after the purchase available for the customer to spend on extra features afterwards. Here is the code I am working with:

 
David Vach
Ranch Hand
Posts: 105
3
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, I realize I made a stupid mistake. Please ignore this thread.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you posted the same loop twice, please tell us what went wrong and how you sorted it out. Well done finding the mistake, anyway
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!