public static void main(String[] args) 
    {
        try
        {
            CalPrinter cp = new CalPrinter(Locale.getDefault());
            FileOutputStream fos = new FileOutputStream("c:\\temp\\t.html");
            PrintWriter pw = new PrintWriter(fos);
            pw.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
            pw.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
            pw.append("<head/><body><table>");
            Set<Long> set = new HashSet<Long>();
            set.add(20120830L);
            cp.print(
                    pw, 
                    5,
                    new Day("16.4."), 
                    new Day("22.10.")
                    );
            pw.append("</table></body></html>");
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
    }
public static void main ( String [ ] args ) { try { CalPrinter cp = new CalPrinter ( Locale . getDefault ( ) ) ; FileOutputStream fos = new FileOutputStream ( "c:\\temp\\t.html" ) ; PrintWriter pw = new PrintWriter ( fos ) ; pw . append ( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" ) ; pw . append ( "<html xmlns=\"http://www.w3.org/1999/xhtml\">" ) ; pw . append ( "<head/><body><table>" ) ; Set < Long > set = new HashSet < Long > ( ) ; set . add ( 20120830L ) ; cp . print ( pw , 5 , new Day ( "16.4." ) , new Day ( "22.10." ) ) ; pw . append ( "</table></body></html>" ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } }
@param args the command line arguments