This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
Here is what the final output looks like for change due

------ *** CHANGE DUE *** ------
$20.00 - 0
$10.00 - 0
$5.00  - 0
$1.00  - 4
$0.25  - 2
$0.10  - 1
$0.05  - 0
$0.01  - 1

I need the ones with 0's to not showup in the console but I can't seem to figure it out. Here is my entire code
Adam Boom
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Norm Radder wrote:Also posted at:

Ok? Thanks I guess. Not sure what that has to do with anything. Someone here might have different insight.
Posts: 4577
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cross posting is generally considered bad form.  It means that someone here might work on an answer when you already have a solution in the other forum.

At JavaRanch, cross-posting is allowed only if you are upfront about it.  Norm's post alerts members to the fact that you have cross-posted.

I used the link to look at the other forum post and I saw that you had a perfectly good answer there, so I didn't bother taking a hard look at your code.
Get off me! Here, read this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!