Here you can find the source of assertIsPermutation(int[] perm)
public static void assertIsPermutation(int[] perm)
//package com.java2s; //License from project: Apache License public class Main { public static void assertIsPermutation(int[] perm) { boolean hit[] = new boolean[perm.length]; for (int i : perm) { assert !hit[i]; hit[i] = true;/*from www. j av a 2 s . c o m*/ } } }