Below is just an example of a java program using console operator and the program should be able to compile fine, but for some reason, my eclipse is not able to read "Console" operator? please Help!.
public class Dot_operator {
public static void main (String [] args){
String name3 = Console.readLine("hello");
System.out.println(name3);
}
}