Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- public class Main {
- public static void main(String[] args) {
- System.out.println("Введите точки двигаясь по часовой стрелке, начиная с верхней левой!!!(ЭТО ВАЖНО!!!!)");
- Dot a = new Dot(3,5, 5);
- Dot b = new Dot(7,5, 5);
- Dot c = new Dot(7,1, 0);
- Dot d = new Dot(1,1, 0);
- Trapezoid t = new Trapezoid(a, b, c, d);
- System.out.println("Is Figure? - "+t.isFigure());
- System.out.println(t.getSquare());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement