Here you can find the source of swap(final int a[], final int i, final int j)
private static void swap(final int a[], final int i, final int j)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a2s . c om*/ * Used by the quick sort and quick select algorithms. */ private static void swap(final int a[], final int i, final int j) { final int T; T = a[i]; a[i] = a[j]; a[j] = T; } /** * Used by the quick sort and quick select algorithms. */ private static void swap(final double a[], final int i, final int j) { final double T; T = a[i]; a[i] = a[j]; a[j] = T; } }