Basic Timer

import java.util.Scanner;  
  
public class Main {  
    public static void main(String[] args) {  
        // timer  
        // caleb b        System.out.println("----------------");  
        System.out.println("Enter the amount of seconds to time: ");  
        Scanner scan = new Scanner(System.in);  
        int seconds = scan.nextInt();  
        System.out.println("Starting timer for " + seconds + " seconds");  
        for (int i = 0; i < seconds; i++) {  
            try {  
                System.out.println(seconds - i);  
                Thread.sleep(1000);  
            } catch (InterruptedException e) {  
                e.printStackTrace();  
            }  
        }  
        boolean timerOver = true;  
        while (timerOver) {  
            System.out.println("TIME UP!!!!!!");  
            System.out.println("Dismiss timer?");  
            String dismiss = scan.next();  
            if (dismiss.equalsIgnoreCase("ok")) {  
                timerOver = false;  
            }  
        }  
  
        System.out.println("----------------");  
    }  
}