static public void test_changeArray102() throws Exception {
        {
            int[] input = { 1 };
            int[] expected = { 1 };
            int[] actual = ArrayQuestions.changeArray102( input );
            
            if ( expected.length != actual.length ) {
                throw new Exception( "Test failed: array have wrong length." );
            }
            for ( int i = 0; i < actual.length; ++i ) {
                if ( expected[i] != actual[i] ) {
                    throw new Exception( "Test failed: the " + i + 
                            " element should be " + actual[i] + " but was " + 
                                    expected[i] + "." );
                }
            }
        }
        {
            int[] input = { 1, 2 };
            int[] expected = { 1 };
            int[] actual = ArrayQuestions.changeArray102( input );
            
            if ( expected.length != actual.length ) {
                throw new Exception( "Test failed: array have wrong length." );
            }
            for ( int i = 0; i < actual.length; ++i ) {
                if ( expected[i] != actual[i] ) {
                    throw new Exception( "Test failed: the " + i + 
                            " element should be " + actual[i] + " but was " + 
                                    expected[i] + "." );
                }
            }
        }
        {
            int[] input = { 1, 6, 13, 8, 20 };
            int[] expected = { 1, 13, 20 };
            int[] actual = ArrayQuestions.changeArray102( input );
            
            if ( expected.length != actual.length ) {
                throw new Exception( "Test failed: array have wrong length." );
            }
            for ( int i = 0; i < actual.length; ++i ) {
                if ( expected[i] != actual[i] ) {
                    throw new Exception( "Test failed: the " + i + 
                            " element should be " + actual[i] + " but was " + 
                                    expected[i] + "." );
                }
            }
        }        
    }