import java.io.Console;
class ReadStringFromConsole {
public static void main(String[] args) {
Console c = System.console();
System.out.println("Enter your name");
String s = c.readLine();
System.out.println("Java Invent welcomes you " + s);
}
}