Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alexius Green
- public class ConeRunner {
- public static void main(String[] args) {
- Cone blue = new Cone();
- Cone red = new Cone();
- Cone yellow = new Cone();
- Cone green = new Cone();
- System.out.printf( "%.2f\n",yellow.volume());
- System.out.printf( "%.2f\n", green.area());
- System.out.printf( "%.2f\n",red.toString());
- System.out.printf( "%.2f\n",blue);
- blue.setVariables(2,2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement