import java.util.*;
/**
 *  Inventory class uses arrays to track multiple types of products
 *
 * @author Kathryn
 * @version February 2007
 * 
 * Today: 
 * 1) Read from files, make changes here and in Items
 * 
 */


public class Inventory
{
    public static void main(String[] args)
    
    {
        // Make an array of two items & a Scanner
        Scanner stdin = new Scanner (System.in);
        Items[] apples = new Items[2];
        
        // Read in two new items
        for (int i = 0; i < apples.length; ++i) {
            String aName = Items.getName(stdin, "apples");
            int amount = Items.getPositiveInteger(stdin, aName);
            apples[i] = new Items(aName, amount);
        }
 
        // Print them out 
        for (int i = 0; i < apples.length; i++) {
            System.out.println(apples[i].toString());
            
        }

        
    }
}
