Inona no fiasa 'nth_element' mitovy amin'ny Java?

Tsy te hahazo laharana milahatra aho, ny sandan'ny singa nth fotsiny. Ohatra, nomena ny laharana

 a = [20, 5, 1, -3] 

Te-ho afaka hangataka

nth_element(a,2) = 1

ao amin'ny C ++ aho, misy fiasa std :: nth_element afaka manao an'io. Misy fiasa Java mitovy ve?

Misaotra!

12
задан templatetypedef 14 August 2011 в 23:27
поделиться