src/Recursion/recursion3.java
public static String movesX(String str, int i, int length) {

		if (i == length - 1 || i == length)
			return str;

		if (str.charAt(i) == 'x') {
			str = str.substring(0, i) + str.substring(i + 1) + 'x';
			
		}

		return movesX(str, i + 1, length);

	}
//	move the character "x" present in a string to end
move the character "x" present in a string to end
move the character " x " present in a string to end
public static String movesX(String str, int i, int length) {
		if (i == length - 1 || i == length)
			return str;
		if (str.charAt(i) == 'x') {
			str = str.substring(0, i) + str.substring(i + 1) + 'x';
		}
		return movesX(str, i + 1, length);
	}
public static String movesX ( String str , int i , int length ) { if ( i == length - 1 || i == length ) return str ; if ( str . charAt ( i ) == 'x' ) { str = str . substring ( 0 , i ) + str . substring ( i + 1 ) + 'x' ; } return movesX ( str , i + 1 , length ) ; }
move the character "x" present in a string to end
move the character " x " present in a string to end