Hello all,
I have some problems with te exercise 9-2, Chapter 9, p. 710-711
The result must be 100 As, 100 Bs, 100 Cs
In the book are follows steps described:
1. create a class and extend the Tread class (OK, no problem)
2. override te run of Thread. This is were te synch block will go (OK)
3. create a constructor tat accept StringBuffer (OK)
4 lock StringBuffer object (OK)
5 within block output StringBuffer 100 times and then increment te letter in the StringBuffer???
6. in main() create StringBuffer object using letter A, create 3 instances and start 3 of them (OK)
Thank you very much