public Students getMaxHeight(Students[] stu)
{
double height=0.0;
for(int i=0;i<stu.length();i++)
{
for(int j=i+1;j<stu.length();j++)
{
if(stu[i]<stu[j])
{
heigth=stu[i];
stu[i]=stu[j];
stu[j]=height;
}
}
}
return stu[0];
}
now stu[0] is the highest one
追问就这么点吗
追答yes , this is bubble sort method , you can get it anywhere ...
have fun:)
guy!
if you want me to help you finish so here you are
the two files