import java.util.Scanner;

public class OrderingSystem{
    public static void main(String[] args){
        Scanner scan = new Scanner( System.in );

        double grams = 0.0;
        String candies = "";

        System.out.print("How many grams of candy? ");
        grams = scan.nextDouble();
        scan.nextLine(); // consume the newline
        System.out.println("You entered: " + grams);
        System.out.print("What types of candy do you want? ");
        candies = scan.nextLine();
        System.out.println("You entered: " + candies);

        CandyBowl bowlA = new CandyBowl(grams, candies);
        System.out.println("Bowl A: " + bowlA.toString() );


        CandyBowl bowlB = new CandyBowl();
        System.out.print("How many grams of candy? ");
        grams = scan.nextDouble();
        scan.nextLine(); // consume the newline
        System.out.println("You entered: " + grams);
        bowlB.setWeight( grams );

        System.out.print("What types of candy do you want? ");
        candies = scan.nextLine();
        System.out.println("You entered: " + candies);
        bowlB.setCandy( candies );

        System.out.println("Bowl B: " + bowlB.toString() );
    }
}