TIME in java
-
hi for all **(SORRY FOR MY BAD ENGLISH)**first: i thank you all i am always ask you and you always help me really thank you second:i want to make a program in java and after a one minute i want the program to pring anything how can i use the time to make it thank you all
-
hi for all **(SORRY FOR MY BAD ENGLISH)**first: i thank you all i am always ask you and you always help me really thank you second:i want to make a program in java and after a one minute i want the program to pring anything how can i use the time to make it thank you all
-
hi for all **(SORRY FOR MY BAD ENGLISH)**first: i thank you all i am always ask you and you always help me really thank you second:i want to make a program in java and after a one minute i want the program to pring anything how can i use the time to make it thank you all
-
hi for all **(SORRY FOR MY BAD ENGLISH)**first: i thank you all i am always ask you and you always help me really thank you second:i want to make a program in java and after a one minute i want the program to pring anything how can i use the time to make it thank you all
The Java Thread class[^] has a
sleep()
method which suspends the thread for the specified time span. That could be all you need (it really depends on your requirements, if the app has a GUI, you need either some timer or a separate Thread; if there is no GUI, no activity while waiting at all, then sleep suffices). :)Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
hi for all **(SORRY FOR MY BAD ENGLISH)**first: i thank you all i am always ask you and you always help me really thank you second:i want to make a program in java and after a one minute i want the program to pring anything how can i use the time to make it thank you all
Do you want to print the results repeatedly? If so read more about Threads. Did you tryout anything yet?
I appreciate your help all the time... CodingLover :)
-
Do you want to print the results repeatedly? If so read more about Threads. Did you tryout anything yet?
I appreciate your help all the time... CodingLover :)
hi (SORRY FOR MY BAD ENGLISH) i thank you all i have solved the problem realy thank you all now i have some new problems , i try to solve it
-
hi (SORRY FOR MY BAD ENGLISH) i thank you all i have solved the problem realy thank you all now i have some new problems , i try to solve it
Good luck then :)
I appreciate your help all the time... CodingLover :)
-
The Java Thread class[^] has a
sleep()
method which suspends the thread for the specified time span. That could be all you need (it really depends on your requirements, if the app has a GUI, you need either some timer or a separate Thread; if there is no GUI, no activity while waiting at all, then sleep suffices). :)Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.