当前位置: 技术问答>java相关
编译问题,很奇怪的,请各位过来帮我看看,谢谢了!
来源: 互联网 发布时间:2017-04-07
本文导语: 我写了一个类,文件如下: import java.util.*; public class StaticTest { public static void main(String[] args) { Employee[] staff=new Employee[3]; staff[0]=new Employee("Tom",80000); staff[1]=new Employee("Dick",60...
我写了一个类,文件如下:
import java.util.*;
public class StaticTest
{
public static void main(String[] args)
{
Employee[] staff=new Employee[3];
staff[0]=new Employee("Tom",80000);
staff[1]=new Employee("Dick",60000);
staff[2]=new Employee("Harry",65000);
Array.sort(staff);
for(int i=0;i
import java.util.*;
public class StaticTest
{
public static void main(String[] args)
{
Employee[] staff=new Employee[3];
staff[0]=new Employee("Tom",80000);
staff[1]=new Employee("Dick",60000);
staff[2]=new Employee("Harry",65000);
Array.sort(staff);
for(int i=0;i