java.util.scanner throws NoSuchElementException when application is started with gradle run
You must wire up default stdin to gradle, put this in build.gradle:
run{
standardInput = System.in
}
You must wire up default stdin to gradle, put this in build.gradle:
run{
standardInput = System.in
}