SHARE
TWEET

APCS2012_C2X1_AreaTester.java

calcpage Sep 20th, 2012 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.Rectangle;
  2. public class AreaTester
  3. {
  4.         public static void main(String[] args)
  5.         {
  6.                 Rectangle foo = new Rectangle(10,20,30,40);
  7.                 System.out.println("foo = " + foo);
  8.                 System.out.println("Area = " + foo.getWidth()*foo.getHeight());
  9.         }
  10. }
RAW Paste Data
Top