Explanation
I'm pretty sure there are multiple ways to get this done but what's the simplest recommended way to insert a wait-time before executing the next code?
Below is a simple Hello World code and I've added few comments to make it easier to understand and visualize :)
Code
/* HelloWorld.java */
public class HelloWorld
{
public static void main(String[] args) {
//Code 1
System.out.println("Hello World!");
//Some Code which will wait 10 seconds before executing the next line.
//Code 2
System.out.println("Hello Again, We Meet After 10 Seconds!");
}
}