code: public static String permuteCyclic(String string, int n) {
  		// single letters are char[]; full names are Character[]
  		Character[] permuted = new Character[string.length()];
  		char[] c = string.toCharArray();
  		Character[] charArray = new Character[c.length];
  		for (int i = 0; i < c.length; i++) {
  			charArray[i] = c[i];
  		}
  		permuteCyclic(charArray, permuted, n);
  		char[] p = new char[permuted.length];
  		for (int i = 0; i < p.length; i++) {
  			p[i] = permuted[i];
  		}
  		return String.valueOf(p);
  	}
docs: Cyclically permute the characters in {@code string} <em>forward</em> by {@code n} elements.
  @param string The string to permute
  @param n The number of characters to permute by; can be positive or negative; values greater than the length of the array are acceptable