Java code for system date dynamically and giving an alert
<p>I am trying to write a java code that will give an alert at a specific time of day but I don't know why I am failing(Please be gentle to my questions as I am totally new to programming). I have this code</p>

<pre><code>    new ScheduledThreadPoolExecutor(1).schedule(new Runnable() {
    public void run() {
        if(Calendar.SECOND==30)
        {
            JOptionPane.showMessageDialog(null, "Hola Amigo");
        }
    }
}, 1, TimeUnit.SECONDS);
</code></pre>

<p>Should I try to refresh the page? Please help...</p>
