Here you can find the source of sortInPlace(final double[] v, final int i, final int j)
private static void sortInPlace(final double[] v, final int i, final int j)
//package com.java2s; //License from project: Open Source License public class Main { private static void sortInPlace(final double[] v, final int i, final int j) { if (v[i] > v[j]) { final double tmp = v[i]; v[i] = v[j];//from www. j a v a2 s . c om v[j] = tmp; } } private static void sortInPlace(final int[] v, final int i, final int j) { if (v[i] > v[j]) { final int tmp = v[i]; v[i] = v[j]; v[j] = tmp; } } }