Bubble sort to the array ....Can someone please help me to find the mistake in this codeššš
public static void main(String[] arg) { int aee [] = {6,4,78,15,2,4,1,8,10,3,9}; System.out.println("the original array is : "+Arrays.toString(aee)); bubble(aee); } public static void swap(int a, int b){ int c =a; a=b; b=c; } public static void bubble(int ary[]){ int l = ary.length; int lo =0 , hi =l-1; for(int i=0; i<hi; i++) { for(int j=0; j<hi-1; j++) { if(ary[i]>ary[j+1]) swap(ary[j],ary[j+1]); } } print(ary); } public static void print(int arr[]){ int l = arr.length; System.out.println("the array is : "); for(int i=0; i<l-1; i++) { System.out.print(arr[i]+","); } }