+ 1

How to pause a java program for 1.5 sec?

Thread.sleep(1500); Does it correct way?

25th Nov 2022, 3:00 PM
Mustakim Rahman
Mustakim Rahman - avatar
4 ответов
+ 2
Yes.
25th Nov 2022, 3:02 PM
Jayakrishna 🇮🇳
+ 2
Can you give me a sample code of that?Jayakrishna🇮🇳
25th Nov 2022, 3:07 PM
Mustakim Rahman
Mustakim Rahman - avatar
25th Nov 2022, 3:10 PM
Jayakrishna 🇮🇳
+ 1
if you not open multiple threads then yes whole program it stop for 1500ms
25th Nov 2022, 6:45 PM
Giannis
Giannis - avatar