Java tutorial
//package com.java2s; import java.util.Timer; public class Main { public static void clearTimeOut(Timer timer) { if (timer != null) { timer.cancel(); } } }