import java.util.ArrayList;
import java.util.List;
public class Sort {
public static void main(String[] args) {
List<橘者羡Double>圆拍嫌拦 li = new ArrayList
for (int i = 0; i < 10; i++) {
li.add(Math.random() * 100);
}
Double[] doubleArray = new Double[10];
li.toArray(doubleArray);
double maxVal = 0;
for (int i = 0; i < doubleArray.length; i++) {
maxVal = maxVal > doubleArray[i] ? maxVal : doubleArray[i];
}
System.out.println(maxVal);
}
}