Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IceCreamConeTester.java MrG 2011.1018
- public class IceCreamConeTester
- {
- public static void main(String[] args)
- {
- IceCreamCone c = new IceCreamCone(5, 1);
- System.out.print("Volume: ");
- System.out.println(c.getVolume());
- System.out.println("Expected: 5.235987755982989");
- System.out.print("Surface Area: ");
- System.out.println(c.getSurfaceArea());
- System.out.println("Expected: 16.01904224441409");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement