进入Window->Preferences->java->java->Installed JREs
双击进去
选中 rt.jar 点击 Source Attachment
找到src.zip的路径,在Path 粘下来 ok
- 可以选中想查看的部分 按f3 或者 按ctrl 点击
*
* @param a the array to be sorted
*/
public static void sort(int[] a) {
DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0);
}
/**
* Sorts the specified range of the array into ascending order. The range
* to be sorted extends from the index {@code fromIndex}, inclusive, to
* the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
* the range to be sorted is empty.