whats wrong in this code for java (bubblesort) errors are coming only one error
class bubblesort { static void bubblesort(int arr[]) { int n = arr.length; int temp = 0; int j; int i; for(i=0;i<n;i++) { for(j=1;j<(n-1);j++) { if(arr[j-1]<arr[j]) { temp = arr[j-1]; arr[j-1] = arr[j]; arr[j] = temp; } } } } public static void main(String[] args) { int arr[] = {3,60,35,2,45,320,5}; System.out.println("array before bubble sort"); for(int i=0;i<arr.length;i++) { System.out.println(arr[i] + " "); } System.out.println(); bubblesort(arr); System.out.print(arr[]+ " "); }