Here you can find the source of swap(long[] a, int i, int change)
private static void swap(long[] a, int i, int change)
//package com.java2s; //License from project: Apache License public class Main { private static void swap(long[] a, int i, int change) { long helper = a[i]; a[i] = a[change];/*w ww .j a va 2 s. c om*/ a[change] = helper; } private static void swap(int[] a, int i, int change) { int helper = a[i]; a[i] = a[change]; a[change] = helper; } }