hello
Okay, with this bit of code im working on listing a disorganized double array into ascending order. I used an example from my text book to run organize using bubble sort. Only issue is that when the computer prints out disorganized, it returns as [D@42e816
import java.util.*;
public class SortDoubles
{
public static void main(String[] args)
{
double[] disorganized = {0.19, 5.16, 45, 4.5, 32, 23.1, 6.52, 41, 15.3, 3.69, 12.35, 80, 62.2, 81.5, 75.6};
double temp;
int a;
int b;
a = disorganized.length;
for(b = 0; b < (a - 1); ++b)
{
temp = disorganized[b];
disorganized[b] = disorganized[b + 1];
disorganized[b + 1] = temp;
}
System.out.print(disorganized[]);
}
}