Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

ShapesDriver

By: droidus on Oct 24th, 2011  |  syntax: Java  |  size: 0.32 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class ShapesDriver {
  2.  
  3.         /**
  4.          * @param args
  5.          */
  6.         public static void main(String[] args) {
  7.                 // Puts in a color, surface area, and volume
  8.                 sphere ball = new sphere("Green", 5.7, 6.9 ,5);
  9.                 System.out.print(ball);
  10.                
  11.                 /*Cube cuboid = new Cube("Yellow", 5.7, 6.9, 8.5);
  12.                 System.out.print(cuboid);*/
  13.         }
  14. }
clone this paste RAW Paste Data