12941295129612971298129913001301130213031304
list2.add( 1 ); list2.add( 2 ); list2.add( 5 ); list2.add( 4 ); assertEquals( 5, list2.max() ); assertEquals( 1, list2.min() ); try { TIntList list3 = new TIntLinkedList(); list3.min(); fail( "Expected IllegalStateException" );
12981299130013011302130313041305130613071308
assertEquals( 5, list2.max() ); assertEquals( 1, list2.min() ); try { TIntList list3 = new TIntLinkedList(); list3.min(); fail( "Expected IllegalStateException" ); } catch ( IllegalStateException ex ) { // Expected }
13301331133213331334133513361337133813391340
list2.add( 1 ); list2.add( 2 ); list2.add( 5 ); list2.add( 4 ); assertEquals( 5, list2.max() ); assertEquals( 1, list2.min() ); try { TIntList list3 = new TIntArrayList(); list3.min(); fail( "Expected IllegalStateException" );
13341335133613371338133913401341134213431344
assertEquals( 5, list2.max() ); assertEquals( 1, list2.min() ); try { TIntList list3 = new TIntArrayList(); list3.min(); fail( "Expected IllegalStateException" ); } catch ( IllegalStateException ex ) { // Expected }