Java Array Permute permute(int[] elements, int i, int j)

Here you can find the source of permute(int[] elements, int i, int j)

Description

permute

License

Open Source License

Declaration

private static void permute(int[] elements, int i, int j) 

Method Source Code

//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;
    }
}

Related

  1. permutation(final int start, final int end)
  2. permutation(int n)
  3. permute(int k, Object[] os)
  4. permute(int[] in, int[] idx)
  5. permute(int[] p, Object[] data, boolean clone)
  6. permute(String str, int startIndex, int endIndex)
  7. permute(T[] array)