Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.sun.javafx.geom.Rectangle;
- public class E2_2{
- public static void main(String[] args){
- Rectangle square = new Rectangle(10,10,10,10);
- int perimeter = (square.getHeight() * 2) + (square.getWidth() * 2);
- System.out.print(perimeter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement