Driver code
class AppDriver { static void Main ( ) { int [ ] arr = { 0 , 1 , 2 } ; AllPermutation < int > perm = new AllPermutation < int > ( arr ) ; perm . GetFirst ( ) ; while ( perm . HasNext ( ) ) { perm . GetNext ( ) ; } } } }