Is it possible to create a delay in java? I've been wondering this for a while. Then, could you use a variable in the delay thats a double?
Ex.
Code java:
import java.util.Scanner; // Program starting (class etc, void main) Scanner scan = new Scanner(System.in); double delaysec; System.out.println("How many seconds do you want to wait for each prompt?"); delaysec = scan.next.Double(); // Get the double // delay command for delaysec amount for(int x = 0; x<5;x++) // Do it 5 times { System.out.println("This has waited : " + delaysec + "seconds."); //Delay command again } // End program