public class Person { private static int count=0; private int age,start; private double time; private String name,country,tmpTime; Person (String name, String country,int age){ this.name=name; this.country=country; this.age=age; count++; start=count; } public String getName(){ return name; } public String getCountry(){ return country; } public int getAge(){ return age; } public int getStart(){ return start; } public void setTime(double time){ this.time=time; } public double getTime(){ return time; } public String toString(){ if(time<1) tmpTime="--"; else tmpTime=""+time; return start+" "+name+" "+age+" "+tmpTime; } }