ml"><img src=../../images/javaHeader.gif width=26 height=26 align=bottom border=0 alt="Writing Java Programs | "></a>
</td>
<td align=right>
<a href="index.html"><strong><em>The Nuts and Bolts of the Java Language</em></strong></a>
</td>
</tr>
</table>
<p>
<hr size=4>

<h2>
    A Simple Class Definition
</h2>
<p>
<blockquote>

<blockquote>
<pre>
<strong>class Count {</strong>
    public static void main(String args[])
        throws java.io.IOException
    {
        int count = 0;

        while (System.in.