1package sample.evolve; 2 3import java.io.*; 4import java.util.*; 5 6/** 7 * Updatable class. DemoServer instantiates this class and calls 8 * show() on the created object. 9 */ 10 11public class WebPage { 12 public void show(OutputStreamWriter out) throws IOException { 13 out.write("<H2>Current Time:</H2>"); 14 Calendar c = new GregorianCalendar(); 15 out.write("<CENTER><H3><FONT color=\"blue\">"); 16 out.write(c.getTime().toString()); 17 out.write("</FONT></H3></CENTER><HR>"); 18 out.write("<P><A HREF=\"demo.html\">Return to the home page.</A>"); 19 } 20} 21