@@ -0,0 +1,561 @@
+package com.akh.algorithms.stringAlgorithms;%0A%0A/**%0A *  @fileName: StringPermutation.java%0A *  @author: Akhash Ramamurthy%0A *  Created on: Aug 28, 2017%0A */%0A%0Apublic class StringPermutation %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09String s = %22ABC%22;%0A%09%09getPermutation(s, %22%22);%0A%09%7D%0A%09%0A%09private static void getPermutation(String s, String prefix)%7B%0A%09%09if(s.length() == 0)%7B%0A%09%09%09System.out.println(prefix);%0A%09%09%7Delse%7B%0A%09%09%09for(int i=0; i%3Cs.length(); i++)%7B%0A%09%09%09%09String rem = s.substring(0, i) + s.substring(i+1);%0A%09%09%09%09getPermutation(rem, prefix + s.charAt(i));%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%09%0A%09%7D%0A%0A%7D%0A

Implementation for generating N! String Permutations