Copy the following code and paste it into your main method:
try {
// Declare and initialize program variables.
int length = 5, width = 2, rectangleArea = 0, base = 4, height = 7, triangleArea = 0;
double radius = 0, circleArea = 0, prismVolume = 0, cylinderSurfaceArea = 0;
double[] cylinderSpecs = {2.66, 9.45, 0.0};
// cylinderSpecs = {radius, height, surfaceArea} - DO NOT MODIFY FIRST TWO ELEMENTS
// Call calcRectangleArea() and calcTriangleArea() and write results to Geometry.txt.
// Assign radius the value located at args[1],
// call calcCircleArea(), and write result to Geometry.txt.
// Call calcPrismVolume() and write result to Geometry.txt.
// Call calcCylinderSurfaceArea() and write result to Geometry.txt.
// Close PrintWriter.
} catch (Exception e) {
e.printStackTrace();
}