i need the list of numbers to end up being the output and instead it outputs something like this [I@7f1bfcfc
import java.util.Scanner;
public class BubbleSort
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int [] bubbles = new int [10];
for (int i = 0; i < bubbles.length; i++)
{
System.out.println("Enter 10 numbers in any order: ");
bubbles[i] = input.nextInt();
}
bubbleSort(bubbles);
}
public static void bubbleSort(int[] bubbles)
{
boolean swapped = true;
int j = 0;
int temporary;
while (swapped)
{
swapped = false;
j++;
for (int i = 0; i < bubbles.length - j; i++)
{
if (bubbles[i] > bubbles[i + 1])
{
temporary = bubbles[i];
bubbles[i] = bubbles[i + 1];
bubbles[i + 1] = temporary;
swapped = true;
}
}
}
System.out.print(bubbles + "\n");
}
}