Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RectangleRunner{
- public static void main(String[] args){
- //Instantiation of r1
- Rectangle r1 = new Rectangle();
- //Call methods on r1
- r1.setLength(5.0);
- r1.setWidth(3.0);
- System.out.println( r1.area() );
- r1.setLength(4.0);
- System.out.println( r1.area() );
- }
- }
Add Comment
Please, Sign In to add comment