How would I loop my program 5 seconds after the answer is given
<pre><code>import java.io.*;    

public class Printer   {
   public static void main (String[] args) throws Exception  {
   while(true){
    System.out.println("Enter a number:");
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine(); 
    double number = Double.valueOf(input).doubleValue();
    System.out.println("Enter second number:");
    input = br.readLine();
    double number1= Double.valueOf(input).doubleValue();


    System.out.println("Enter operator(+, -, *, /): ");
    input = br.readLine();    //"+" "-" "*" "/"
    if (input.compareTo ("+") == 0)
    {
       System.out.println("Answer is: " + (number + number1));
       break;
    }
    else if (input.compareTo ("-") == 0)
    {
       System.out.println("Answer is: " + (number - number1));
       break;
      }
    else if (input.compareTo ("*") == 0)
    {
       System.out.println("Answer is: " + (number * number1));
       break;
    }
    else if (input.compareTo ("/") == 0)
    {
       System.out.println("Answer is: " + (number / number1));
       break;
    }

   }
 }
}
</code></pre>
