update GeometryDriver

This commit is contained in:
SowinskiBraeden committed 2025-02-13 11:44:47 -08:00
1 parent c34367d155
commit d47c34b49a
1 file changed
+1 -1
@@ -25,7 +25,7 @@ public class GeometryDriver {
System.out.print("Enter z coord: "); System.out.print("Enter z coord: ");
int z = scan.nextInt(); int z = scan.nextInt();
Sphere sphere = new Sphere(x, y, z, r); Sphere sphere = new Sphere(x, y, z, r);
System.out.println("Created Sphere at " + sphere.toString() + "\n" System.out.println("Created Sphere at " + sphere.toString() + "\n"
+ "Sphere Surface Area: " + sphere.surfaceArea() + "\n" + "Sphere Surface Area: " + sphere.surfaceArea() + "\n"
+ "Sphere Volume: " + sphere.volume() + "\n" + "Sphere Volume: " + sphere.volume() + "\n"