/** * See the class documentation * * @param args - has no purpose */ public static void main(String[] args) { boolean cont = true; // Whether or not the user wishes to continue while (cont) { double[] input = getInput(); Sphere aSp = new Sphere(input[0]); Cylinder aCy = new Cylinder(input[0], input[1]); Cone aCo = new Cone(input[0], input[1]); System.out.println( "The VOLUME of a SPHERE of given specifications is: " + aSp.volume((int) input[2])); System.out.println( "The SURFACE AREA of a SPHERE of given specifications is: " + aSp.surfaceArea(((int) input[2]))); System.out.println( "The VOLUME of a CYLINDER of given specifications is: " + aCy.volume(((int) input[2]))); System.out.println( "The SURFACE AREA of a CYLINDER of given specifications is: " + aCy.surfaceArea(((int) input[2]))); System.out.println( "The VOLUME of a CONE of given specifications is: " + aCo.volume(((int) input[2]))); System.out.println( "The SURFACE AREA of a CONE of given specifications is: " + aCo.surfaceArea(((int) input[2]))); try { Thread.sleep(1000); } catch (InterruptedException e) { } cont = getContinue(); } sc.close(); }