Its a small challange made by me, I wanna see how fast people can figure out whats missing in order to make this code work properly, good luck
What the code does is printing how many loops were made after 10 seconds basically.

Code:
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Test
{
	private int a;
	private long b;
	private ScheduledThreadPoolExecutor c = new ScheduledThreadPoolExecutor(1);
	
	public Test()
	{
		c.scheduleAtFixedRate(new RunnableWrapper(), 0, 1000, TimeUnit.MILLISECONDS);
		
		while (a < 10)
			b++;
		
		System.out.println("Loops: " + b);
	}
	
	private class RunnableWrapper implements Runnable
	{
		@Override
		public void run()
		{
			a++;
		}
	}
	
	public static void main(String[] args)
	{
		new Test();
	}
}