How to do insertion sorting using for loop

my code :
public static void insertion_Sorting(int[] arr){

    for(int i=1;i<arr.length;i++){
        int val=arr[i];
        int jj = i - 1;
        for (int j=i-1;arr[j]>arr[i] && j>=0;j--){
            jj=j;
            arr[j+1]=arr[j];
        }
        arr[jj]=val;
    }

}

error shown : Index out of bound