package jacorb.orb.domain.test;

/**
 * testInteger.java
 * a simple test program to check if Integer.hashCode() == Integer.intValue() 
 * The answer is yes.
 * 
 *
 * @author Herbert Kiefer
 * @version 1.0
 */


import java.util.*;

public class testInteger  {
  
  public static void main(String args[]) {
    Hashtable test= new Hashtable();
    int min= -30, max= 60;
    System.out.println("testing begins...");
    for (int i= min; i < max; i++) test.put( new Integer(i), new Integer(i));
    System.out.println(test);

     for (int i= max-1; i > min; i--) {
      Integer value= (Integer) test.get(new Integer(i));
      System.out.println(value.intValue());
      }
  }

  
} // testInteger
