UCL Logo

Snack Bar Code

The program consists of 5 classes and also uses the KeyboardInput, FileInput and FileOutput classes. 

To compile and run this example, copy and paste the source code into .java files, making sure each file is named correctly. Compile each file and then run the program using 'java SnackBar'.

Last updated: September 2, 2006

Computer Science Department - University College London - Gower Street - London - WC1E 6BT - Telephone: +44 (0)20 7679 7214 - Copyright 1999-2006 UCL


 Search by Google