Search in sources :

Example 1 with Shape

use of corejava.chapter4.lab4_5.shape.Shape 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));
    }
}
Also used : Circle(corejava.chapter4.lab4_5.shape.Circle) Shape(corejava.chapter4.lab4_5.shape.Shape) Point(corejava.chapter4.lab1_2_3.Point) Queue(corejava.chapter2.lab16_17.Queue)

Aggregations

Queue (corejava.chapter2.lab16_17.Queue)1 Point (corejava.chapter4.lab1_2_3.Point)1 Circle (corejava.chapter4.lab4_5.shape.Circle)1 Shape (corejava.chapter4.lab4_5.shape.Shape)1