Run test1.java
a few times.
Describe its behaviour.
Try
CounterOne.java. Every time the Start button is pressed the counter starts again at one.
Why is this? What happens if you click the stat button twice or more times?
Rewrite the run method, above, so it blocks the main thread
and repeatedly allows
the user to enter Strings until
the user enters ok at which point the main thread is allowed to
procede. See tryIt2.java
for solution.
Write a program which is similar to CounterOne.java
which has a textfield where the numbers cycle round between 0 and 9. But this time when you press the stop button the numbers stop cycling, and when you press the start button they carry on. Answer: CounterTwo.java.