Bubblesort display error

it is showing “The method display(int[]) is undefined for the type bubblesort1” in display(arr); line.

public class bubblesort1 {
public static void main(String[] args) {
int[] arr = {88,66,55,44,22};
bubblesort(arr);
display(arr);
}
public static void bubblesort(int[] arr ) {
for(int counter = 0; counter < arr.length-1; counter++) {
for(int j=0; j<arr.length - 1 - counter; j++) {
if(arr[j] > arr[j+1]) {
int temp=arr[j];
arr[j]= arr[j+1];
arr[j+1]=temp;
}
}
}
}
}

Hey @adityakathoch_a87e00c5c7e39b2d It is giving that bcoz there is no display function in the bubblesort1 class.Create the function first

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.