I\'m just starting to learn Groovy and I am experimenting in GroovyConsole.
Is there a way I can read user input? I have tried the code below but I get an error.
if your System.console() is null, you can
Scanner scan = new Scanner(System.in); String s = scan.nextLine()