
public class CountDown implements Loop<Integer>{
	int x;
	public CountDown(int x) {
		super();
		this.x = x;
	}
	@Override
	public boolean test() {
		return x>0;
	}
	@Override
	public Integer get() {
		return x;
	}
	@Override
	public void step() {
		x = x-1;
	}
	

}
