0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 17:07:05
0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序0.8,0.8,0.808,0.80,0.08这5个数从小到

0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序
0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序

0.8,0.8,0.808,0.80,0.08这5个数从小到大怎样排序
//用java编写的
double d[]={0.8,0.8,0.808,0.80,0.08};//放入一个double型的数组d中
java.util.Arrays.sort(d);//调用Arrays类的sort()方法进行排序
for(int i=0;i