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.
def readln = javax.swing.JOptionPane.&showInputDialog def username = readln 'What is your name?' println "Hello $username."