private List < IIsotope > orderList ( List < IIsotope > isotopes_TO ) { List < IIsotope > newOrderList = new ArrayList < IIsotope > ( ) ; for ( int i = 0 ; i < orderElements . length ; i ++ ) { String symbol = orderElements [ i ] ; Iterator < IIsotope > itIso = isotopes_TO . iterator ( ) ; while ( itIso . hasNext ( ) ) { IIsotope isotopeToCo = itIso . next ( ) ; if ( isotopeToCo . getSymbol ( ) . equals ( symbol ) ) { newOrderList . add ( isotopeToCo ) ; } } } return newOrderList ; }
Put the order the List of IIsotope according the probability occurrence .