Java Utililty Methods String Permutation

List of utility methods to do String Permutation

Description

The list of methods to do String Permutation are organized into topic(s).

Method

StringnextPermutation(String f)
Create next permutation based on provided.
boolean onlyZ = true;
for (int i = 0; i < f.length(); ++i)
    if (f.charAt(i) != 'z')
        onlyZ = false;
if (onlyZ) {
    String s = "";
    for (int i = 0; i <= f.length(); ++i)
        s = s + 'a';
...