Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pac;
- public class Main {
- public static void main(String[] alphabet) {
- Rectangle rec1 = new Rectangle(5, 1);
- System.out.println(rec1.getRectangle());
- System.out.println("Ширина: " + rec1.getWidth() + "см");
- System.out.println("Высота: " + rec1.getHeight() + "см");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement