java eclipse 查看源码

进入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.

猜你喜欢

转载自blog.csdn.net/qq_42898087/article/details/81584380