:56707330 Sure! Here's an example of Java code that implements the bubble sort algorithm to sort a list of integers:
public class BubbleSort {
public static void main(String[] args) {
int[] numbers = {5, 2, 8, 12, 1, 9};
bubbleSort(numbers);
System.out.println("Sorted numbers:");
for (int num: numbers) {
System.out.print(num + " ");
}
}
public static void bubbleSort(int[] arr) {
int n = arr.length;
for (int i = 0; i < n - 1; i++) {