Last active
March 13, 2019 19:22
-
-
Save ezhov-da/823fbe9cf9029c011eb43a5ac17baa4d to your computer and use it in GitHub Desktop.
groovy ввод с консоли
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//==> http://stackoverflow.com/questions/10184091/groovy-console-read-input | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) | |
print "Input:" | |
def userInput = br.readLine() | |
println "You entered: $userInput" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment