Mcb-06 Jav [new] Jun 2026

private SolidUtils() /* static‑only */

public Cylinder(double radius, double height) mcb-06 jav

@Override public String description() return String.format( "Cylinder (r=%.2f, h=%.2f)", radius, height); mcb-06 jav

codebase

/** Pretty‑prints a collection of solids to the console. */ public static void printAll(List<Solid> solids) for (Solid s : solids) System.out.printf("%s – Volume: %.3f, Surface: %.3f%n", s.description(), s.volume(), s.surfaceArea()); mcb-06 jav