• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 1
Java has a Thread class for that you can use Thread.sleep(10); to wait 10 milliseconds. But it could throws a InterruptedException. So you should surround your the sleep method with a try and catch like shown below. https://www.sololearn.com/learn/Java/2177/?ref=app https://www.sololearn.com/learn/Java/2185/?ref=app
4th Jan 2021, 5:32 PM
Stefanoo
Stefanoo - avatar
+ 1
Java also have a Clock class. Here is an example I wrote. https://code.sololearn.com/ca3GSqMQb1PO/?ref=app
4th Jan 2021, 5:57 PM
Stefanoo
Stefanoo - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
I am a beginner, please teach me how to use Python
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Web Development
0 Votes
Please complete this code.
0 Votes
Cybersecurity techies
2 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes