Advertisement
O_Egor

laba4(main)

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