Urgent-Imp-Displaying message with respect to system time
I have a table (TimeTable) in database and column name is Current time:
Table Name: TimeTable
Now My java Program should do the following:
Reading the data from the database.
And Now pick up the time from table and when the time matches with the system time
it need to trigger or dispaly a message "Hello".This should happen with all the records
in the table with respect to their time.
If i take the above database table as example:
At 3'o clock it has to display "Hello" and again 4'o clock
again it has dispaly "Hello". Like this it has to happen for the rest of the
Provide me the answers for the below questions
1)Help me with this kind of code where i can schedule and trigger the message for display.
2) The Program should run always and it should look up the system time and
display the message when ever the time occurs.