public static void METHOD_1 ( TYPE_1 [ ] array ) { for ( int i = 0 ; i < ( array . length ) ; i ++ ) { int min = i ; for ( int j = i + 1 ; j < ( array . length ) ; j ++ ) { if ( ( array [ j ] . compareTo ( array [ min ] ) ) < 0 ) { min = j ; } TYPE_2 . METHOD_2 ( array , i , min ) ; } } }

public static void METHOD_1 ( TYPE_1 [ ] array ) { for ( int i = 0 ; i < ( array . length ) ; i ++ ) { int min = i ; for ( int j = i + 1 ; j < ( array . length ) ; j ++ ) { if ( ( array [ j ] . compareTo ( array [ min ] ) ) < 0 ) { min = j ; } } TYPE_2 . METHOD_2 ( array , i , min ) ; } }
