java.lang.System error in Console()
<pre><code>public class ABC{
    public static void main(string... as)
    {
        char i;
        i = System.console().readLine("Hi ");
        System.out.println(i);
    }
}
</code></pre>

<p>I am getting error in this code. </p>

<p>The error is :-
console() not found in java.lang.System.</p>

<p>and if i am putting some constant then the code is properly working.</p>

<p>Please Help me out.
Thanks in advance</p>
