src/Recursion/recursion2.java
public static int last_index(int[] arr, int item, int i) {

		if (i == -1)
			return -1;

		if (arr[i] == item)
			return i;

		return last_index(arr, item, i - 1);

	}
//	last index of an element in array
last index of an element in array
last index of an element in array
public static int last_index(int[] arr, int item, int i) {
		if (i == -1)
			return -1;
		if (arr[i] == item)
			return i;
		return last_index(arr, item, i - 1);
	}
public static int last_index ( int [ ] arr , int item , int i ) { if ( i == - 1 ) return - 1 ; if ( arr [ i ] == item ) return i ; return last_index ( arr , item , i - 1 ) ; }
last index of an element in array
last index of an element in array