• Post Reply Bookmark Topic Watch Topic
  • New Topic

I have a problem with the correct entry.  RSS feed

 
Leslie Christ
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



When I run createpurchase.java, it functions as designed only when I put in the incorrect invoice number and/or the wrong price. but if I don't invoke the while statements, the file hangs and never populates the "one." statements...any help would be appreciated.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while (inv > 1000 && inv < 8000);<---
while (pri > 0.00);<---

see those little squiggly things at the end?
what do you think they do?
 
Leslie Christ
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:while (inv > 1000 && inv < 8000);<---
while (pri > 0.00);<---

see those little squiggly things at the end?
what do you think they do?


thank you...again with the details, I get stumped.
Onward and upward...I hope.
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Are you sure you want to query the input when price > 0.00? > ??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!