Class SnackMachine

java.lang.Object
  |
  +--SnackMachine

public class SnackMachine
extends java.lang.Object


Constructor Summary
SnackMachine(java.lang.String fileName)
          The constructor.
 
Method Summary
static void main(java.lang.String[] args)
          This is the test program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnackMachine

public SnackMachine(java.lang.String fileName)
The constructor. It creates an inventory of Snacks from a file. You do not need to be concerned with its implementation.
Method Detail

main

public static void main(java.lang.String[] args)
This is the test program. It takes one parameter: the datafile It will create a SnackMachine from the supplied inventory file and then allow the user to grab all of his favorite Snacks, For example: java SnackMachine datafiles/inventory1.dat