java console input code example
Example 1: java taking console input
String str = System.console().readLine();
Example 2: read input from console
variable = input()
String str = System.console().readLine();
variable = input()