about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/5/Java/interface/Test.java
blob: b0502f0428729e08948e6067bd3b8111b84f2e7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import static java.util.Arrays.asList;

class Test
{
  public static void main(String... args)
  {
    var array = asList(new Point(1.0, 2.0), new Circle(3.0, 4.0, 5.0),
                       new Cylinder(6.0, 7.0, 8.0, 9.0));
    array.forEach(System.out::println);
  }
}