Java console application
<p>Can you tell me if the console example (Java) below seems correct and how can I test it myself?
<a href="http://www.javapractices.com/topic/TopicAction.do?Id=79" rel="nofollow">http://www.javapractices.com/topic/TopicAction.do?Id=79</a>
I get about 8 errors, starting with: </p>

<blockquote>
  <p>"Severity and Description Path    Resource    Location    Creation Time   Id The
  method printf(String, Object[]) in the type Console is not applicable
  for the arguments (String, String)    JL1 Console6.java   line
  21    1345812238329   351"</p>
</blockquote>

<p>for this line:</p>

<pre><code>console.printf("Welcome, %1$s.", username);
</code></pre>

<p>I wrote a lot of applets, they all worked fine, up until I tried this.</p>

<p>Before this I tried a very simple console that read a few words until encountering the word 'bye', and it worked.
My Java version: 1.6.0_33
OS: Windows 7</p>
