> 
> **Possible Duplicate:**  
> 
> [Generating all permutations of a given string](https://stackoverflow.com/questions/4240080/generating-all-permutations-of-a-given-string) 
> 
> 
> 

I´m looking for a algorithm which returns me a List of all possible combines of x-letters.

Example: 3 letters. (A,B,C)

* A B C
* A C B
* B C A
* B A C
* C B A
* C A B

I want to do this up to 4-5 letters with a algorithm in Java.