Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the code for wait 2 second in JSE

Posted on 2011-09-10
1
Medium Priority
?
283 Views
Last Modified: 2012-05-12
What is the code for wait 2 second in JSE, thanks.
0
Comment
Question by:turbot_yu
1 Comment
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 2000 total points
ID: 36515960
try 
{
Thread.sleep(2000); // do nothing for 2000 miliseconds (2 seconds)
} 
catch(InterruptedException e)
{
e.printStackTrace();
}

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question