update GeometryDriver
This commit is contained in:
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"
|
||||||
|
|||||||
Reference in new issue
Block a user