Initial commit.
Code as given in exercise.
Initial commit.
Synchronised the instance of counter in the run method, as this is the
object that is being access by all the threads in computing their counts.
Initial commit
Initial commit.
Synchronise the three methods, at method level, because in order to work
they all depend on nobody interfering with the balance.
Initial commit
commit
Initial commit