multiple arguments in a printf method
问题 I am writing a code for my Java class that calls for me to create something that looks like a bill/receipt. similar to: Item quantity price total gum 10 $1.49 $14.90 soda 3 $1.00 $3.00 chips 20 $1.25 $20.00 I am using the printf(); method. The variables i have declared are double gumPrice = 1.49; float gumQuantity = 10; double gumTotal = 14.90; double sodaPrice = 1.00; float sodaQuantity = 3; double sodaTotal = 3.00; double chipsPrice = 1.25; float chipsQuantity = 20; double chipsTotal = 25