JAVA-16301: Check Article Code Matches GitHub
This commit is contained in:
@@ -19,4 +19,10 @@ public interface Vehicle {
|
||||
static int getHorsePower(int rpm, int torque) {
|
||||
return (rpm * torque) / 5252;
|
||||
}
|
||||
|
||||
double getSpeed();
|
||||
|
||||
default double getSpeedInKMH(double speed) {
|
||||
return speed * 1.60934;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user