public class ABC{
public static void main(string... as)
{
char i;
i = System.console().readLine("Hi ");
System.out.println(i);
}
}
I am getting error in this code.
The error is :-
console() not found in java.lang.System.
and if i am putting some constant then the code is properly working.
Please Help me out.
Thanks in advance
Use
java.util.Scanneror InputStreamReader.or