Sure.
Here is a program with a few blanks to fill:
public class TestCone { public static void main( String[] args ) { Cone cone1 = new Cone( 2.5, 5.8 ); System.out.println( "cone1 area: " + cone1.area() + " volume: " + cone1.volume() ); Cone cone2 = new Cone( , ); System.out.println( "cone2 area: " + cone2.area() + " volume: " + cone2.volume() ); } }
Fill in the blanks for the second cone with numbers of your choice.