As base of cylinder is circular Base Area PR 2. The following java program is tested and executed in cmd. Area radius radius p volume area length.
If we know the height of a cylinder then we can calculate the volume as follows.
Volume of a Sphere 4 p radius 2 Java Code to find the surface area and volume of a sphere. Java program to find surface area and volume of sphere. JOptionPaneshowMessageDialog null The volume of the cylinder is approximately rformat volume CM3. Calculate volume of prism java code.