HW09 Solution2

HW09 Solution2 - for (int i = 0...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 import java.util.Scanner public class HW9_1 { public static void main(String[] args) { String[] foodNames = {"Soy Burgers", "Hamburgers", "Cheeseburgers", "Double Bypass Burgers"} BarGraph spartans spartans = new BarGraph(foodNames) Scanner input = new Scanner(System.in)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for (int i = 0 System.out.print("How many " + foodNames[i] + "? ") int count = input.nextInt() spartans.setCount(i, count) } System.out.println() spartans.printGraph() } } Sheet1 Page 2 i < foodNames.length i++) { // Optional blank line...
View Full Document

Page1 / 2

HW09 Solution2 - for (int i = 0...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online