This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes a question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "a question" Watch "a question" New topic
Author

a question

sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
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.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
So what are you having problems with ?

You should probably read this as well
[ February 28, 2008: Message edited by: Joanne Neal ]

Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a question
 
Similar Threads
Changing an arrays size
Java Collections: Chapter 2: Decrement Performance
Triangle Numbers Divisors
one logical question
Java programming contest