package interfaces;
import java.util.*;
/**
类型比较
@version 1.3 2021.05.13
@author yang
*/
public class EmployeeSortTest
{
public static void main(String[]gras)
{
Employee[] staff=new Employee[3];
staff[0]=new Employee("张三",3000);
staff[1]=new Employee("李四",4000);
staff[2]=new Employee("王五",5000);
Array.sort(staff);
for (Employee e:staff)
System.out.println("name="+e.getName()+",salary="+e.get.salray());
}
}