COMP228 Lab 6
COMP228 Lab 6
Centennial College
References: Read the course’s text, ppt slides and class examples.
This material provides the necessary information you need to complete the exercises.
Exercise 1:
Create an AccountTest class to test multiple transactions (threads). Use an ArrayList to create a
list of three or more Transaction objects. Use method execute of ExecutorService to execute the
threads. Display the results. (10 marks)
Lab #6 Page 1 of 2
Java Programming COMP-228
Evaluation:
Functionality
Correct implementation of 50%
Multithreading
Correct implementation of Collections 30%
API
Comments, correct naming of 5%
variables, methods, classes, etc.
Friendly input/output 15%
Total 100%
Lab #6 Page 2 of 2