package Iterator;

import java.io.DataInputStream;
import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Iterator;

public class IteratorHelper<T> 
{
	static int low;
	static int high;
	public IteratorHelper(Runnable r)
	{
	}		

 public IteratorHelper()
 {
		// TODO Auto-generated constructor stub
 }

public static void main (String [] args) {
	  
	  Thread t1 = new Thread();
      t1.start();
	  InputStreamReader ISR = new InputStreamReader(System.in); 
	  BufferedReader BR = new BufferedReader(ISR); 
	  int a [] = new int[50];
	     
      try 
      {
            
             System.out.print("Enter value for low : ");
             low = Integer.parseInt(BR.readLine());
             System.out.print("Enter value for high : ");
             high = Integer.parseInt(BR.readLine());
             System.out.print("The values are : ");
             for(int i=low;i<=high;i++)
 			{
             a[i]=i;
             System.out.print(a[i]+" ");
            }
                   }
      catch (Exception ex)
      {
             // if the input was a string.
             System.out.println(ex.toString());
      }
  }

public boolean done()
{
		return false;
} 

public synchronized int get() {
    boolean available = false;
	while (available == false) {
        try {
            wait();
        } catch (InterruptedException e) {
        }
    }
    available = false;
    notifyAll();          
    return high;
}

public void yield(int i1)
{
	
}

}
