Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MuradHomeWork;
- public class TestRectangle {
- public static void main(String[] args) {
- Rectangle rec1 = new Rectangle(10, 10);
- Rectangle rec2 = new Rectangle(10, 20);
- System.out.println("The biggest area is " + rec1.greaterArea(rec2));
- System.out.println("The total area is " + Rectangle.totalArea());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement