/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package p2; import java.util.ArrayList; import java.util.List; import p1.*; /** * * @author Melnikov */ public class DescribableExample { public static void main(String[] args){ List elements=new ArrayList(); elements.add(new Resistor(500)); elements.add(new Article("January", "January items")); ContentsGenerator.saveContents("c:\\temp\\result.html", elements); } }