How to use a timer in java

Hi,

What I would like is:

When I start my app then a timer is running
after 15 minutes is passed then show message

Does someone have the code for that?

Greetings,

Peter kiers
LVL 1
Peter KiersOperatorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

santhimurthydCommented:
Take a look into this for clarity

http://www.w3schools.com/js/js_timing.asp

below sample will fire every 15minutes

setTimeout("alertMsg()",900000);

function alertMsg()
{
   alert("Hello");
   setTimeout("alertMsg()",900000);
}
0
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

for_yanCommented:

This is a simple example how tyo use timer and timer task:

import java.util.Timer;
import java.util.TimerTask;

public class TimerTest {

    public static void main(String[] args) {
         java.util.Date dd = new java.util.Date();

        Timer myTimer = new Timer();

        for(int j=0; j<10; j++){
            java.util.Date curDate = new java.util.Date(dd.getTime() + (j+1)*10000L);
              myTimer.schedule(new MyTask(j), curDate, 3000L);

        }
        
    }

}
class MyTask extends TimerTask {
    int myNum;
    int executionTime = 1;
    public MyTask(int n){
        myNum = n;
    }

public void run(){
    System.out.println((new java.util.Date()) + ":  Hello, my task number is " + myNum + " Im running now for the " + executionTime + " th time");
       executionTime++;
}


}

Open in new window



Sat Oct 22 22:54:38 PDT 2011:  Hello, my task number is 0 Im running now for the 1 th time
Sat Oct 22 22:54:41 PDT 2011:  Hello, my task number is 0 Im running now for the 2 th time
Sat Oct 22 22:54:44 PDT 2011:  Hello, my task number is 0 Im running now for the 3 th time
Sat Oct 22 22:54:47 PDT 2011:  Hello, my task number is 0 Im running now for the 4 th time
Sat Oct 22 22:54:48 PDT 2011:  Hello, my task number is 1 Im running now for the 1 th time
Sat Oct 22 22:54:50 PDT 2011:  Hello, my task number is 0 Im running now for the 5 th time
Sat Oct 22 22:54:51 PDT 2011:  Hello, my task number is 1 Im running now for the 2 th time
Sat Oct 22 22:54:53 PDT 2011:  Hello, my task number is 0 Im running now for the 6 th time
Sat Oct 22 22:54:54 PDT 2011:  Hello, my task number is 1 Im running now for the 3 th time
Sat Oct 22 22:54:56 PDT 2011:  Hello, my task number is 0 Im running now for the 7 th time
Sat Oct 22 22:54:57 PDT 2011:  Hello, my task number is 1 Im running now for the 4 th time
Sat Oct 22 22:54:58 PDT 2011:  Hello, my task number is 2 Im running now for the 1 th time
Sat Oct 22 22:54:59 PDT 2011:  Hello, my task number is 0 Im running now for the 8 th time
Sat Oct 22 22:55:00 PDT 2011:  Hello, my task number is 1 Im running now for the 5 th time
Sat Oct 22 22:55:01 PDT 2011:  Hello, my task number is 2 Im running now for the 2 th time
Sat Oct 22 22:55:02 PDT 2011:  Hello, my task number is 0 Im running now for the 9 th time
Sat Oct 22 22:55:03 PDT 2011:  Hello, my task number is 1 Im running now for the 6 th time
Sat Oct 22 22:55:04 PDT 2011:  Hello, my task number is 2 Im running now for the 3 th time
Sat Oct 22 22:55:05 PDT 2011:  Hello, my task number is 0 Im running now for the 10 th time
Sat Oct 22 22:55:06 PDT 2011:  Hello, my task number is 1 Im running now for the 7 th time
Sat Oct 22 22:55:07 PDT 2011:  Hello, my task number is 2 Im running now for the 4 th time
Sat Oct 22 22:55:08 PDT 2011:  Hello, my task number is 3 Im running now for the 1 th time
Sat Oct 22 22:55:08 PDT 2011:  Hello, my task number is 0 Im running now for the 11 th time
Sat Oct 22 22:55:09 PDT 2011:  Hello, my task number is 1 Im running now for the 8 th time
Sat Oct 22 22:55:10 PDT 2011:  Hello, my task number is 2 Im running now for the 5 th time
Sat Oct 22 22:55:11 PDT 2011:  Hello, my task number is 0 Im running now for the 12 th time
Sat Oct 22 22:55:11 PDT 2011:  Hello, my task number is 3 Im running now for the 2 th time
Sat Oct 22 22:55:12 PDT 2011:  Hello, my task number is 1 Im running now for the 9 th time
Sat Oct 22 22:55:13 PDT 2011:  Hello, my task number is 2 Im running now for the 6 th time
Sat Oct 22 22:55:14 PDT 2011:  Hello, my task number is 3 Im running now for the 3 th time
Sat Oct 22 22:55:14 PDT 2011:  Hello, my task number is 0 Im running now for the 13 th time
Sat Oct 22 22:55:15 PDT 2011:  Hello, my task number is 1 Im running now for the 10 th time
Sat Oct 22 22:55:16 PDT 2011:  Hello, my task number is 2 Im running now for the 7 th time
Sat Oct 22 22:55:17 PDT 2011:  Hello, my task number is 0 Im running now for the 14 th time
Sat Oct 22 22:55:17 PDT 2011:  Hello, my task number is 3 Im running now for the 4 th time
Sat Oct 22 22:55:18 PDT 2011:  Hello, my task number is 4 Im running now for the 1 th time
Sat Oct 22 22:55:18 PDT 2011:  Hello, my task number is 1 Im running now for the 11 th time
Sat Oct 22 22:55:19 PDT 2011:  Hello, my task number is 2 Im running now for the 8 th time
Sat Oct 22 22:55:20 PDT 2011:  Hello, my task number is 3 Im running now for the 5 th time
Sat Oct 22 22:55:20 PDT 2011:  Hello, my task number is 0 Im running now for the 15 th time
Sat Oct 22 22:55:21 PDT 2011:  Hello, my task number is 1 Im running now for the 12 th time
Sat Oct 22 22:55:21 PDT 2011:  Hello, my task number is 4 Im running now for the 2 th time
Sat Oct 22 22:55:22 PDT 2011:  Hello, my task number is 2 Im running now for the 9 th time
Sat Oct 22 22:55:23 PDT 2011:  Hello, my task number is 0 Im running now for the 16 th time
Sat Oct 22 22:55:23 PDT 2011:  Hello, my task number is 3 Im running now for the 6 th time
Sat Oct 22 22:55:24 PDT 2011:  Hello, my task number is 1 Im running now for the 13 th time
Sat Oct 22 22:55:24 PDT 2011:  Hello, my task number is 4 Im running now for the 3 th time
Sat Oct 22 22:55:25 PDT 2011:  Hello, my task number is 2 Im running now for the 10 th time
Sat Oct 22 22:55:26 PDT 2011:  Hello, my task number is 3 Im running now for the 7 th time
Sat Oct 22 22:55:26 PDT 2011:  Hello, my task number is 0 Im running now for the 17 th time
Sat Oct 22 22:55:27 PDT 2011:  Hello, my task number is 1 Im running now for the 14 th time
Sat Oct 22 22:55:27 PDT 2011:  Hello, my task number is 4 Im running now for the 4 th time
Sat Oct 22 22:55:28 PDT 2011:  Hello, my task number is 5 Im running now for the 1 th time
Sat Oct 22 22:55:28 PDT 2011:  Hello, my task number is 2 Im running now for the 11 th time
Sat Oct 22 22:55:29 PDT 2011:  Hello, my task number is 0 Im running now for the 18 th time
Sat Oct 22 22:55:29 PDT 2011:  Hello, my task number is 3 Im running now for the 8 th time
Sat Oct 22 22:55:30 PDT 2011:  Hello, my task number is 1 Im running now for the 15 th time
Sat Oct 22 22:55:30 PDT 2011:  Hello, my task number is 4 Im running now for the 5 th time
Sat Oct 22 22:55:31 PDT 2011:  Hello, my task number is 2 Im running now for the 12 th time
Sat Oct 22 22:55:31 PDT 2011:  Hello, my task number is 5 Im running now for the 2 th time
Sat Oct 22 22:55:32 PDT 2011:  Hello, my task number is 3 Im running now for the 9 th time
Sat Oct 22 22:55:32 PDT 2011:  Hello, my task number is 0 Im running now for the 19 th time
Sat Oct 22 22:55:33 PDT 2011:  Hello, my task number is 4 Im running now for the 6 th time
Sat Oct 22 22:55:33 PDT 2011:  Hello, my task number is 1 Im running now for the 16 th time
Sat Oct 22 22:55:34 PDT 2011:  Hello, my task number is 2 Im running now for the 13 th time
Sat Oct 22 22:55:34 PDT 2011:  Hello, my task number is 5 Im running now for the 3 th time
Sat Oct 22 22:55:35 PDT 2011:  Hello, my task number is 0 Im running now for the 20 th time
Sat Oct 22 22:55:35 PDT 2011:  Hello, my task number is 3 Im running now for the 10 th time
Sat Oct 22 22:55:36 PDT 2011:  Hello, my task number is 1 Im running now for the 17 th time
Sat Oct 22 22:55:36 PDT 2011:  Hello, my task number is 4 Im running now for the 7 th time
Sat Oct 22 22:55:37 PDT 2011:  Hello, my task number is 2 Im running now for the 14 th time
Sat Oct 22 22:55:37 PDT 2011:  Hello, my task number is 5 Im running now for the 4 th time
Sat Oct 22 22:55:38 PDT 2011:  Hello, my task number is 6 Im running now for the 1 th time
Sat Oct 22 22:55:38 PDT 2011:  Hello, my task number is 3 Im running now for the 11 th time
Sat Oct 22 22:55:38 PDT 2011:  Hello, my task number is 0 Im running now for the 21 th time
Sat Oct 22 22:55:39 PDT 2011:  Hello, my task number is 4 Im running now for the 8 th time
Sat Oct 22 22:55:39 PDT 2011:  Hello, my task number is 1 Im running now for the 18 th time
Sat Oct 22 22:55:40 PDT 2011:  Hello, my task number is 2 Im running now for the 15 th time
Sat Oct 22 22:55:40 PDT 2011:  Hello, my task number is 5 Im running now for the 5 th time
Sat Oct 22 22:55:41 PDT 2011:  Hello, my task number is 0 Im running now for the 22 th time
Sat Oct 22 22:55:41 PDT 2011:  Hello, my task number is 6 Im running now for the 2 th time
Sat Oct 22 22:55:41 PDT 2011:  Hello, my task number is 3 Im running now for the 12 th time
Sat Oct 22 22:55:42 PDT 2011:  Hello, my task number is 1 Im running now for the 19 th time
Sat Oct 22 22:55:42 PDT 2011:  Hello, my task number is 4 Im running now for the 9 th time
Sat Oct 22 22:55:43 PDT 2011:  Hello, my task number is 5 Im running now for the 6 th time
Sat Oct 22 22:55:43 PDT 2011:  Hello, my task number is 2 Im running now for the 16 th time
Sat Oct 22 22:55:44 PDT 2011:  Hello, my task number is 0 Im running now for the 23 th time
Sat Oct 22 22:55:44 PDT 2011:  Hello, my task number is 3 Im running now for the 13 th time
Sat Oct 22 22:55:44 PDT 2011:  Hello, my task number is 6 Im running now for the 3 th time
Sat Oct 22 22:55:45 PDT 2011:  Hello, my task number is 4 Im running now for the 10 th time
Sat Oct 22 22:55:45 PDT 2011:  Hello, my task number is 1 Im running now for the 20 th time
Sat Oct 22 22:55:46 PDT 2011:  Hello, my task number is 2 Im running now for the 17 th time
Sat Oct 22 22:55:46 PDT 2011:  Hello, my task number is 5 Im running now for the 7 th time
Sat Oct 22 22:55:47 PDT 2011:  Hello, my task number is 0 Im running now for the 24 th time
Sat Oct 22 22:55:47 PDT 2011:  Hello, my task number is 6 Im running now for the 4 th time
Sat Oct 22 22:55:47 PDT 2011:  Hello, my task number is 3 Im running now for the 14 th time
Sat Oct 22 22:55:48 PDT 2011:  Hello, my task number is 7 Im running now for the 1 th time
Sat Oct 22 22:55:48 PDT 2011:  Hello, my task number is 1 Im running now for the 21 th time
Sat Oct 22 22:55:48 PDT 2011:  Hello, my task number is 4 Im running now for the 11 th time
Sat Oct 22 22:55:49 PDT 2011:  Hello, my task number is 5 Im running now for the 8 th time
Sat Oct 22 22:55:49 PDT 2011:  Hello, my task number is 2 Im running now for the 18 th time
Sat Oct 22 22:55:50 PDT 2011:  Hello, my task number is 3 Im running now for the 15 th time
Sat Oct 22 22:55:50 PDT 2011:  Hello, my task number is 0 Im running now for the 25 th time
Sat Oct 22 22:55:50 PDT 2011:  Hello, my task number is 6 Im running now for the 5 th time
Sat Oct 22 22:55:51 PDT 2011:  Hello, my task number is 7 Im running now for the 2 th time
Sat Oct 22 22:55:51 PDT 2011:  Hello, my task number is 4 Im running now for the 12 th time
Sat Oct 22 22:55:51 PDT 2011:  Hello, my task number is 1 Im running now for the 22 th time
Sat Oct 22 22:55:52 PDT 2011:  Hello, my task number is 2 Im running now for the 19 th time
Sat Oct 22 22:55:52 PDT 2011:  Hello, my task number is 5 Im running now for the 9 th time
Sat Oct 22 22:55:53 PDT 2011:  Hello, my task number is 6 Im running now for the 6 th time
Sat Oct 22 22:55:53 PDT 2011:  Hello, my task number is 3 Im running now for the 16 th time
Sat Oct 22 22:55:53 PDT 2011:  Hello, my task number is 0 Im running now for the 26 th time
Sat Oct 22 22:55:54 PDT 2011:  Hello, my task number is 7 Im running now for the 3 th time
Sat Oct 22 22:55:54 PDT 2011:  Hello, my task number is 1 Im running now for the 23 th time
Sat Oct 22 22:55:54 PDT 2011:  Hello, my task number is 4 Im running now for the 13 th time
Sat Oct 22 22:55:55 PDT 2011:  Hello, my task number is 5 Im running now for the 10 th time
Sat Oct 22 22:55:55 PDT 2011:  Hello, my task number is 2 Im running now for the 20 th time
Sat Oct 22 22:55:56 PDT 2011:  Hello, my task number is 0 Im running now for the 27 th time
Sat Oct 22 22:55:56 PDT 2011:  Hello, my task number is 6 Im running now for the 7 th time
Sat Oct 22 22:55:56 PDT 2011:  Hello, my task number is 3 Im running now for the 17 th time
Sat Oct 22 22:55:57 PDT 2011:  Hello, my task number is 7 Im running now for the 4 th time
Sat Oct 22 22:55:57 PDT 2011:  Hello, my task number is 4 Im running now for the 14 th time
Sat Oct 22 22:55:57 PDT 2011:  Hello, my task number is 1 Im running now for the 24 th time
Sat Oct 22 22:55:58 PDT 2011:  Hello, my task number is 8 Im running now for the 1 th time
Sat Oct 22 22:55:58 PDT 2011:  Hello, my task number is 2 Im running now for the 21 th time
Sat Oct 22 22:55:58 PDT 2011:  Hello, my task number is 5 Im running now for the 11 th time
Sat Oct 22 22:55:59 PDT 2011:  Hello, my task number is 3 Im running now for the 18 th time
Sat Oct 22 22:55:59 PDT 2011:  Hello, my task number is 0 Im running now for the 28 th time
Sat Oct 22 22:55:59 PDT 2011:  Hello, my task number is 6 Im running now for the 8 th time
Sat Oct 22 22:56:00 PDT 2011:  Hello, my task number is 7 Im running now for the 5 th time
Sat Oct 22 22:56:00 PDT 2011:  Hello, my task number is 1 Im running now for the 25 th time
Sat Oct 22 22:56:00 PDT 2011:  Hello, my task number is 4 Im running now for the 15 th time
Sat Oct 22 22:56:01 PDT 2011:  Hello, my task number is 8 Im running now for the 2 th time
Sat Oct 22 22:56:01 PDT 2011:  Hello, my task number is 5 Im running now for the 12 th time
Sat Oct 22 22:56:01 PDT 2011:  Hello, my task number is 2 Im running now for the 22 th time
Sat Oct 22 22:56:02 PDT 2011:  Hello, my task number is 6 Im running now for the 9 th time
Sat Oct 22 22:56:02 PDT 2011:  Hello, my task number is 3 Im running now for the 19 th time
Sat Oct 22 22:56:02 PDT 2011:  Hello, my task number is 0 Im running now for the 29 th time
Sat Oct 22 22:56:03 PDT 2011:  Hello, my task number is 7 Im running now for the 6 th time
Sat Oct 22 22:56:03 PDT 2011:  Hello, my task number is 4 Im running now for the 16 th time
Sat Oct 22 22:56:03 PDT 2011:  Hello, my task number is 1 Im running now for the 26 th time
Sat Oct 22 22:56:04 PDT 2011:  Hello, my task number is 8 Im running now for the 3 th time
Sat Oct 22 22:56:04 PDT 2011:  Hello, my task number is 2 Im running now for the 23 th time
Sat Oct 22 22:56:04 PDT 2011:  Hello, my task number is 5 Im running now for the 13 th time
Sat Oct 22 22:56:05 PDT 2011:  Hello, my task number is 6 Im running now for the 10 th time
Sat Oct 22 22:56:05 PDT 2011:  Hello, my task number is 0 Im running now for the 30 th time
Sat Oct 22 22:56:05 PDT 2011:  Hello, my task number is 3 Im running now for the 20 th time
Sat Oct 22 22:56:06 PDT 2011:  Hello, my task number is 7 Im running now for the 7 th time
Sat Oct 22 22:56:06 PDT 2011:  Hello, my task number is 1 Im running now for the 27 th time
Sat Oct 22 22:56:06 PDT 2011:  Hello, my task number is 4 Im running now for the 17 th time
Sat Oct 22 22:56:07 PDT 2011:  Hello, my task number is 8 Im running now for the 4 th time
Sat Oct 22 22:56:07 PDT 2011:  Hello, my task number is 5 Im running now for the 14 th time
Sat Oct 22 22:56:07 PDT 2011:  Hello, my task number is 2 Im running now for the 24 th time
Sat Oct 22 22:56:08 PDT 2011:  Hello, my task number is 9 Im running now for the 1 th time
Sat Oct 22 22:56:08 PDT 2011:  Hello, my task number is 3 Im running now for the 21 th time
Sat Oct 22 22:56:08 PDT 2011:  Hello, my task number is 6 Im running now for the 11 th time
Sat Oct 22 22:56:08 PDT 2011:  Hello, my task number is 0 Im running now for the 31 th time
Sat Oct 22 22:56:09 PDT 2011:  Hello, my task number is 7 Im running now for the 8 th time
Sat Oct 22 22:56:09 PDT 2011:  Hello, my task number is 4 Im running now for the 18 th time
Sat Oct 22 22:56:09 PDT 2011:  Hello, my task number is 1 Im running now for the 28 th time
Sat Oct 22 22:56:10 PDT 2011:  Hello, my task number is 8 Im running now for the 5 th time
Sat Oct 22 22:56:10 PDT 2011:  Hello, my task number is 2 Im running now for the 25 th time
Sat Oct 22 22:56:10 PDT 2011:  Hello, my task number is 5 Im running now for the 15 th time
Sat Oct 22 22:56:11 PDT 2011:  Hello, my task number is 9 Im running now for the 2 th time
Sat Oct 22 22:56:11 PDT 2011:  Hello, my task number is 3 Im running now for the 22 th time
Sat Oct 22 22:56:11 PDT 2011:  Hello, my task number is 0 Im running now for the 32 th time
Sat Oct 22 22:56:11 PDT 2011:  Hello, my task number is 6 Im running now for the 12 th time
Sat Oct 22 22:56:12 PDT 2011:  Hello, my task number is 7 Im running now for the 9 th time
Sat Oct 22 22:56:12 PDT 2011:  Hello, my task number is 1 Im running now for the 29 th time
Sat Oct 22 22:56:12 PDT 2011:  Hello, my task number is 4 Im running now for the 19 th time
Sat Oct 22 22:56:13 PDT 2011:  Hello, my task number is 8 Im running now for the 6 th time
Sat Oct 22 22:56:13 PDT 2011:  Hello, my task number is 5 Im running now for the 16 th time
Sat Oct 22 22:56:13 PDT 2011:  Hello, my task number is 2 Im running now for the 26 th time
Sat Oct 22 22:56:14 PDT 2011:  Hello, my task number is 9 Im running now for the 3 th time
Sat Oct 22 22:56:14 PDT 2011:  Hello, my task number is 6 Im running now for the 13 th time
Sat Oct 22 22:56:14 PDT 2011:  Hello, my task number is 3 Im running now for the 23 th time
Sat Oct 22 22:56:14 PDT 2011:  Hello, my task number is 0 Im running now for the 33 th time
Sat Oct 22 22:56:15 PDT 2011:  Hello, my task number is 7 Im running now for the 10 th time
Sat Oct 22 22:56:15 PDT 2011:  Hello, my task number is 4 Im running now for the 20 th time
Sat Oct 22 22:56:15 PDT 2011:  Hello, my task number is 1 Im running now for the 30 th time
Sat Oct 22 22:56:16 PDT 2011:  Hello, my task number is 8 Im running now for the 7 th time
Sat Oct 22 22:56:16 PDT 2011:  Hello, my task number is 2 Im running now for the 27 th time
Sat Oct 22 22:56:16 PDT 2011:  Hello, my task number is 5 Im running now for the 17 th time
Sat Oct 22 22:56:17 PDT 2011:  Hello, my task number is 9 Im running now for the 4 th time
Sat Oct 22 22:56:17 PDT 2011:  Hello, my task number is 0 Im running now for the 34 th time
Sat Oct 22 22:56:17 PDT 2011:  Hello, my task number is 6 Im running now for the 14 th time
Sat Oct 22 22:56:17 PDT 2011:  Hello, my task number is 3 Im running now for the 24 th time
Sat Oct 22 22:56:18 PDT 2011:  Hello, my task number is 7 Im running now for the 11 th time
Sat Oct 22 22:56:18 PDT 2011:  Hello, my task number is 1 Im running now for the 31 th time
Sat Oct 22 22:56:18 PDT 2011:  Hello, my task number is 4 Im running now for the 21 th time
Sat Oct 22 22:56:19 PDT 2011:  Hello, my task number is 8 Im running now for the 8 th time
Sat Oct 22 22:56:19 PDT 2011:  Hello, my task number is 5 Im running now for the 18 th time
Sat Oct 22 22:56:19 PDT 2011:  Hello, my task number is 2 Im running now for the 28 th time
Sat Oct 22 22:56:20 PDT 2011:  Hello, my task number is 9 Im running now for the 5 th time
Sat Oct 22 22:56:20 PDT 2011:  Hello, my task number is 3 Im running now for the 25 th time
Sat Oct 22 22:56:20 PDT 2011:  Hello, my task number is 0 Im running now for the 35 th time
Sat Oct 22 22:56:20 PDT 2011:  Hello, my task number is 6 Im running now for the 15 th time

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
for_yanCommented:

This is the simples way to show message in 15 min - no timer is necessary:

import javax.swing.*;
import java.util.Timer;
 import java.util.TimerTask;


public class Timer15min {




    public static void main(String[] args) {
         java.util.Date dd = new java.util.Date();

    //    Timer myTimer = new Timer();

       // for(int j=0; j<10; j++){
          //  java.util.Date curDate = new java.util.Date(dd.getTime() + 15L*60L*1000L);
        try{
            Thread.sleep(30000L);
        }catch(Exception ex){
            ex.printStackTrace();
        }
         JOptionPane.showMessageDialog(null,"Message");
        //myTimer.schedule(new MyTask(0), curDate, 999999999999999999L);

       // }

    }

}

Open in new window

0
Peter KiersOperatorAuthor Commented:
Thanks. P.
0
for_yanCommented:
Peter,
Mind that post 37260757 implies JavaScript, whereas all other postings refer to Java Programming Language (which is appropriate for this zone,
where you posted your question)- and there is a big difference between these two. So you'll have first to decide if you really need Java Programming Language
(and want to run stand alone appliction) or you want JavaScript and plan to run it within the browser.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.