public TYPE_1 < TYPE_2 > METHOD_1 ( int x ) { int index = 0 ; TYPE_1 < TYPE_2 > item = first ; while ( ( item != null ) && ( index < x ) ) { index ++ ; item = item . METHOD_2 ( ) ; } if ( item == null ) return null ; else return item ; }

public TYPE_1 < TYPE_2 > METHOD_1 ( int x ) { int index = 0 ; TYPE_1 < TYPE_2 > item = first ; while ( index < x ) { index ++ ; item = item . METHOD_2 ( ) ; } if ( item == null ) return null ; else return item ; }
