JAVA-16301: Check Article Code Matches GitHub

This commit is contained in:
freelansam
2022-12-02 18:45:30 +05:30
parent fd85b58fa3
commit aabfbaad08
12 changed files with 149 additions and 13 deletions

View File

@@ -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;
}
}