<p><pre><code>    System.out.println(&quot;Foobar&quot;);
</code></pre>
Either you&#x27;re referring to something else or you misunderstood the language. The `out` stream is static so there is no need to create your own class first. (<a href="http:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;7&#x2F;docs&#x2F;api&#x2F;java&#x2F;lang&#x2F;System.html#out" rel="nofollow">http:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;7&#x2F;docs&#x2F;api&#x2F;java&#x2F;lang&#x2F;System.ht...</a>)