Two test cases wrong

import java.util.Scanner;

public class Bubblesort {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int input=s.nextInt();
int[] arr=new int[input];
for (int i = 0; i <arr.length ; i++) {
arr[i]=s.nextInt();
}
bblesort(arr);
for (int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);

    }

}
public static void bblesort(int[] arr){
    for (int i = 1; i <arr.length-1 ; i++) {
        for (int j = 0; j < arr.length-i; j++) {
         if (arr[j]>arr[j+1])
         {
         int temp=arr[j];
         arr[j]=arr[j+1];
         arr[j+1]=temp;
         }
        }
    }
}

}