Skip to content
Snippets Groups Projects
Commit 80c0131a authored by Noah Mandler's avatar Noah Mandler
Browse files

Correction des tests

parent dd694a9e
No related branches found
No related tags found
No related merge requests found
Pipeline #10478 passed
...@@ -28,7 +28,7 @@ public class Sphere { ...@@ -28,7 +28,7 @@ public class Sphere {
// Methods // Methods
// *********************************************************************** // ***********************************************************************
public double computeVolume() { public double computeVolume() {
return 4 * Math.PI * Math.pow(radius_, 2) / 3; return 4 * Math.PI * Math.pow(radius_, 3) / 3;
} }
public double distanceTo(Sphere other) { public double distanceTo(Sphere other) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment