public void insertionSort(int arr[]) {
int temp;
for(int k=1; k<arr.length; k++){
temp = arr[k];
int i;
for( i = k-1; i>=0&&arr> temp; i--)
arr[i+1] = arr;
arr[i+1] = temp;
}}
//when i trace through this code i can explain y
//line 7 and 8 does what it does
//please break it down for me
int temp;
for(int k=1; k<arr.length; k++){
temp = arr[k];
int i;
for( i = k-1; i>=0&&arr> temp; i--)
arr[i+1] = arr;
arr[i+1] = temp;
}}
//when i trace through this code i can explain y
//line 7 and 8 does what it does
//please break it down for me