implemented newAthlete()

This commit is contained in:
Artem Didytschuk 2020-12-06 20:05:00 +01:00
parent e838d57eb6
commit 4f6f24ff82
2 changed files with 21 additions and 2 deletions

View File

@ -12,8 +12,8 @@ public class Athlete implements ComparableContent<Athlete>{
long startTime;
long endTime;
public Athlete(String pName) {
name = pName;
public Athlete() {
}
public String getName(){

19
Competition.java Normal file
View File

@ -0,0 +1,19 @@
public class Competition
{
List <Athlete>athletes;
public Competition()
{
athletes = new List<Athlete>();
}
public void newAthlete(){
athletes.append(new Athlete());
}
}