use of corejava.chapter4.lab4_5.shape.Circle in project CoreJava by alekseiiagnenkov.
the class Lab4 method main.
public static void main(String[] args) {
Line line = new Line(new Point(0, 0), new Point(3, 6));
Rectangle rectangle = new Rectangle(new Point(0, 10), 20, 10);
Circle circle = new Circle(new Point(0, 0), 20);
System.out.println(line);
System.out.println(rectangle);
System.out.println(circle);
Line lineCopy = line.clone();
Rectangle rectangleCopy = rectangle.clone();
Circle circleCopy = circle.clone();
System.out.println(lineCopy);
System.out.println(rectangleCopy);
System.out.println(circleCopy);
}
use of corejava.chapter4.lab4_5.shape.Circle in project CoreJava by alekseiiagnenkov.
the class Lab9 method main.
public static void main(String[] args) {
Point point = new Point(0, 0);
Shape circle = new Circle(new Point(0, 0), 20);
Queue<Integer> queue = new Queue<>();
queue.add(1);
queue.add(2);
queue.add(3);
Queue.Iterator iterator = queue.iterator();
Integer a = 0;
Character[] strings = { '1', '2', '3' };
Object[] objects = { strings, 0, a, point, queue, iterator, circle, staticPoint };
for (Object obj : objects) {
System.out.println(toString(obj));
}
}