public class ArrayFun {
public static void main(String[] args) {
int[]arr={3,6,8,12,19,36,444};
System.out.println(getIndex(arr,444));
}
public static int getIndex(int[]arr,int key){
int min=0;
int max=arr.length-1;
int mid= (min+max)/2;
while(min<=max){