public TYPE_1 METHOD_1 ( ) { if ( path [ 1 ] . METHOD_2 ( ) ) return path [ 1 ] ; if ( path [ 0 ] . METHOD_2 ( ) ) return path [ 0 ] ; return null ; }
public TYPE_1 METHOD_1 ( ) { for ( int i = 0 ; i < ( path . length ) ; i ++ ) { if ( path [ i ] . METHOD_2 ( ) ) return path [ i ] ; } return null ; }