Code example for ScheduledThreadPoolExecutor

Methods: scheduleAtFixedRate

0
	/** 
	 * @param args 
	 */ 
	public static void main(String[] args) {
		// TODO Auto-generated method stub 
		ScheduledThreadPoolExecutor demo = new ScheduledThreadPoolExecutor(1);
		int initialDelay1 = 1;
		int period1 = 1;
		int initialDelay2 = 1;
		int period2 = 1;
		 
		 
		demo.scheduleAtFixedRate(new Runnable() {
			 
			@Override 
			public void run() { 
				// TODO Auto-generated method stub 
				throw new NullPointerException("tttttttttttttttttttt");
				 
			} 
Connect your IDE to all the code out there  Get Codota for Java