Can you all take a look at my code and tell me where I am going wrong?
interface IBeacon {
// Determines whether beacon is within range of truck
Boolean isPresent();
// Determines how for beacon is from truck
int getDistance();
}
class Route implements IBeacon {
String name;
char line;
String route;
String station;
int distance;
Route(String name, char line, String route, String station, int distance) {
this.name = name;
this.line = line;
this.route = route;
this.station = station;
this.distance = distance;
}
public Boolean isPresent() {
if (this.distance<=10) {
}
return true;
}
int getDistance() {
return this.distance;
}
}