See More

public class Race { String LeaderName = ""; int LeaderDistance = 0; void updateLeader(Car car) { int newCarDistance = 24 * car.speed; if (newCarDistance > this.LeaderDistance) { this.LeaderName = car.name; this.LeaderDistance = newCarDistance; } } }