Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. Alexius Green
  2.  
  3. public class ConeRunner {
  4.  
  5.     public static void main(String[] args) {
  6.         Cone blue = new Cone();
  7.         Cone red = new Cone();
  8.         Cone yellow = new Cone();
  9.         Cone green = new Cone();
  10.        
  11.                 System.out.printf( "%.2f\n",yellow.volume());
  12.                 System.out.printf( "%.2f\n", green.area());
  13.                 System.out.printf( "%.2f\n",red.toString());
  14.                 System.out.printf( "%.2f\n",blue);
  15.                     blue.setVariables(2,2);
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement