src/Recursion/recursion3.java
public static int convertInt(String str, int ans, int i, int multiplier) {
		if (i == -1) {
			return ans;
		}

		ans = ans + multiplier * Integer.parseInt(String.valueOf(str.charAt(i)));

		return convertInt(str, ans, i - 1, multiplier * 10);
	}
//	convert the string number in an integer number
convert the string number in an integer number
convert the string number in an integer number
public static int convertInt(String str, int ans, int i, int multiplier) {
		if (i == -1) {
			return ans;
		}
		ans = ans + multiplier * Integer.parseInt(String.valueOf(str.charAt(i)));
		return convertInt(str, ans, i - 1, multiplier * 10);
	}
public static int convertInt ( String str , int ans , int i , int multiplier ) { if ( i == - 1 ) { return ans ; } ans = ans + multiplier * Integer . parseInt ( String . valueOf ( str . charAt ( i ) ) ) ; return convertInt ( str , ans , i - 1 , multiplier * 10 ) ; }
convert the string number in an integer number
convert the string number in an integer number