In Java, you can't declare methods inside of another method.  Next time, you can put the method outside of the run() method and it should work :)