Here you can find the source of swap(double x[], Object[] corr, int a, int b)
private static void swap(double x[], Object[] corr, int a, int b)
//package com.java2s; /*//from www. ja v a2s .co m * Util.java * (FScape) * * Copyright (c) 2001-2015 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de * * * Changelog: * 17-Jun-07 extended */ public class Main { private static void swap(double x[], Object[] corr, int a, int b) { final double tmpX = x[a]; x[a] = x[b]; x[b] = tmpX; final Object tmpCorr = corr[a]; corr[a] = corr[b]; corr[b] = tmpCorr; } }