public static void main(final String[] args) {
		SortedIntArraySet s = new SortedIntArraySet(3);
		s.put(90);
		s.put(10);
		s.put(20);
		s.put(30);
		System.out.println("toString()=" + s.toString());
		s.remove(10);
		s.put(40);
		System.out.println("toString()=" + s.toString());
		System.out.println("first=" + s.first());
		System.out.println("last()=" + s.last());
		System.out.println("floor(15)=" + s.floor(15));
		System.out.println("ceiling(15)=" + s.ceiling(15));
		System.out.println("lower(15)=" + s.lower(15));
		System.out.println("higher(15)=" + s.higher(15));
		System.out.println("floor(20)=" + s.floor(20));
		System.out.println("ceiling(20)=" + s.ceiling(20));
		System.out.println("lower(20)=" + s.lower(20));
		System.out.println("higher(20)=" + s.higher(20));
		System.out.println("floor(0)=" + s.floor(0));
		System.out.println("ceiling(0)=" + s.ceiling(0));
		System.out.println("lower(0)=" + s.lower(0));
		System.out.println("higher(0)=" + s.higher(0));
		System.out.println("floor(9999)=" + s.floor(9999));
		System.out.println("ceiling(9999)=" + s.ceiling(9999));
		System.out.println("lower(9999)=" + s.lower(9999));
		System.out.println("higher(9999)=" + s.higher(9999));
		System.out.println("contains(20)=" + s.contains(20));
		System.out.println("contains(9999)=" + s.contains(9999));
		System.out.println("size()=" + s.size());
		System.out.println("-------- iter begin");
		IntIterator iter = s.iterator();
		while (iter.hasNext()) {
			System.out.println(iter.next());
		}
		System.out.println("-------- iter end");
		System.out.println("-------- for begin");
		for (int i = -1; i <= s.size(); i++) {
			System.out.println(s.get(i));
		}
		System.out.println("-------- for end");
		s.clear();
		System.out.println("first=" + s.first());
		System.out.println("last()=" + s.last());
	}
public static void main ( final String [ ] args ) { SortedIntArraySet s = new SortedIntArraySet ( 3 ) ; s . put ( 90 ) ; s . put ( 10 ) ; s . put ( 20 ) ; s . put ( 30 ) ; System . out . println ( "toString()=" + s . toString ( ) ) ; s . remove ( 10 ) ; s . put ( 40 ) ; System . out . println ( "toString()=" + s . toString ( ) ) ; System . out . println ( "first=" + s . first ( ) ) ; System . out . println ( "last()=" + s . last ( ) ) ; System . out . println ( "floor(15)=" + s . floor ( 15 ) ) ; System . out . println ( "ceiling(15)=" + s . ceiling ( 15 ) ) ; System . out . println ( "lower(15)=" + s . lower ( 15 ) ) ; System . out . println ( "higher(15)=" + s . higher ( 15 ) ) ; System . out . println ( "floor(20)=" + s . floor ( 20 ) ) ; System . out . println ( "ceiling(20)=" + s . ceiling ( 20 ) ) ; System . out . println ( "lower(20)=" + s . lower ( 20 ) ) ; System . out . println ( "higher(20)=" + s . higher ( 20 ) ) ; System . out . println ( "floor(0)=" + s . floor ( 0 ) ) ; System . out . println ( "ceiling(0)=" + s . ceiling ( 0 ) ) ; System . out . println ( "lower(0)=" + s . lower ( 0 ) ) ; System . out . println ( "higher(0)=" + s . higher ( 0 ) ) ; System . out . println ( "floor(9999)=" + s . floor ( 9999 ) ) ; System . out . println ( "ceiling(9999)=" + s . ceiling ( 9999 ) ) ; System . out . println ( "lower(9999)=" + s . lower ( 9999 ) ) ; System . out . println ( "higher(9999)=" + s . higher ( 9999 ) ) ; System . out . println ( "contains(20)=" + s . contains ( 20 ) ) ; System . out . println ( "contains(9999)=" + s . contains ( 9999 ) ) ; System . out . println ( "size()=" + s . size ( ) ) ; System . out . println ( "-------- iter begin" ) ; IntIterator iter = s . iterator ( ) ; while ( iter . hasNext ( ) ) { System . out . println ( iter . next ( ) ) ; } System . out . println ( "-------- iter end" ) ; System . out . println ( "-------- for begin" ) ; for ( int i = - 1 ; i <= s . size ( ) ; i ++ ) { System . out . println ( s . get ( i ) ) ; } System . out . println ( "-------- for end" ) ; s . clear ( ) ; System . out . println ( "first=" + s . first ( ) ) ; System . out . println ( "last()=" + s . last ( ) ) ; }
Test

@param args