timer.schedule isn't working for me when I use your block of code in my main method, it seems I can never get java's timer function working for me. I have been trying all afternoon, outside of a main method when I
say "Timer timer = new Timer();" it says its correct but now inside the main method it lets me do what I wanted earlier but now what I want now which is "Timer('printer'); "
This would all be fine if my timer.schedule would work but no
"The method schedule(MyTask, int, int) is undefined for the type Timer" and a quick fix option is
add cast to 'timer'.