create a simple counting thread.It will count to100,pausing one second between each number.Also,in keeping with the counting theme,it will output a string every ten numbers.
clue: create a for loop that will loop 100 times.use the modulo operation to check whether there are any remainder numbers when divided by 10. use the static method thread.sleep()to pause . The long number represents milli seconds.
posted 9 years ago
So what are you having problems with ?
You should probably read this as well [ February 28, 2008: Message edited by: Joanne Neal ]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads