Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Rectangle;
- public class AreaTester
- {
- public static void main(String[] args)
- {
- Rectangle foo = new Rectangle(10,20,30,40);
- System.out.println("foo = " + foo);
- System.out.println("Area = " + foo.getWidth()*foo.getHeight());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement