public class CubeVolumeCalculator { public static void main(String[] args) { // Ensure there are exactly 3 command-line arguments if (args.length != 3) { System.out.println("Usage: java CubeVolumeCalculator "); return; } // Parse command-line arguments to double double height = Double.parseDouble(args[0]); double width = Double.parseDouble(args[1]); double length = Double.parseDouble(args[2]); // Calculate the volume of the cube double volume = height * width * length; // Print the volume System.out.println("The volume of the cube is: " + volume); } }