1  import java.util.ArrayList;
  2  
  3  /**
  4     This program demonstrates the permutation generator.
  5  */
  6  public class PermutationGeneratorDemo
  7  {
  8     public static void main(String[] args)
  9     {
 10        PermutationGenerator generator = new PermutationGenerator("eat");
 11        ArrayList<String> permutations = generator.getPermutations();
 12        for (String s : permutations)
 13        {         
 14           System.out.println(s);
 15        }
 16     }
 17  }
 18