If I update the above code and add the code to implement a new class as per below...it seems to keep looping through the constructor, wont go into the main and wont come out of the constructor.
It also seems to loose the option to do it only once every 10 minutes.

Re: Java timer issue not running correctly

You get problems like the above, where the assignment is valid in the statement as it produces a boolean result...so the simple rule is don't do it that way and you'll not end up with silly mistakes like that.