// This program determines the popularity of the various // combinations of drinks offered by a vending machine. // Barry Cornelius, 19 June 2000 import java.io. BufferedReader; import java.io. InputStreamReader; import java.io. IOException; public class VendingMachineProg { public static void main(final String[] pArgs) throws IOException { final BufferedReader tKeyboard = new BufferedReader(new InputStreamReader(System.in)); final VendingMachine tVendingMachine = new VendingMachine(tKeyboard); tVendingMachine.setFrequencyCountsToZero(); tVendingMachine.readInSelectionsAndUpdateFrequencyCounts(); tVendingMachine.outputFrequencyCounts(); } }