'void' type not allowed here error (java) help?
<p>When i try to compile this: </p>

<pre><code>import java.awt.* ;

    class obj
    {
        public static void printPoint (Point p) 
        { 
            System.out.println ("(" + p.x + ", " + p.y + ")"); 
        }
        public static void main (String[]arg)
        {
            Point blank = new Point (3,4) ; 
            System.out.println (printPoint (blank)) ;
        }
    }
</code></pre>

<p>i get this error: </p>

<pre><code>obj.java:12: 'void' type not allowed here
        System.out.println (printPoint (blank)) ; 
                                               ^
1 error
</code></pre>

<p>I don't really know how to start asking about this other than to ask:  </p>

<ul>
<li>What went wrong here?    </li>
<li>What does this error message mean?</li>
</ul>
