Here you can find the source of permute(int[] elements, int i, int j)
private static void permute(int[] elements, int i, int j)
//package com.java2s; //License from project: Open Source License public class Main { private static void permute(int[] elements, int i, int j) { int temp; temp = elements[i];// ww w . ja v a2 s . co m elements[i] = elements[j]; elements[j] = temp; } }