Stop looping with delay
I write application that run picture presentaion with delay (I used thread.sleep for delay)in while loop .How can I stop the looping when a keyboard is press ?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #108 · 20.5K reputationPosted Jul 11, 2019, 2:16 AM EDT
Rajanikant HawaldarRank #108 · 20.5K reputationPosted Jul 10, 2019, 11:00 PM EDT
Yoel47 reputationPosted Jul 11, 2019, 1:50 AM EDT
Rajanikant HawaldarRank #108 · 20.5K reputationPosted Jul 11, 2019, 2:25 AM EDT