Java equivalent of cin (C++)
<p>how would you code this in Java?</p>

<pre><code>char c;
int n;
cin &gt;&gt; c &gt;&gt; n;
</code></pre>

<p>So that I can get this kind of inputs:</p>

<pre><code>X123123
</code></pre>
