package com.Wzg;
import javax.naming.Name;
public class Test01 {
public static void main(String[] args) {
person[] people=new person[3];//创建一个person类的数组
people[0]=new person("jerry",45,"loser");
people[1]=new person("morty",14,"student");
people[2]=new person("rick",66,"scientist");
System.out.println("排序前:");
for(int i=0;ipeople[j+1].getAge()){
tmp=people[j];
people[j]=people[j+1];
people[j+1]=tmp;
}
}
}
System.out.println("排序后:");
for(int i=0;i



