I am trying to learn Java, I read a tutorial that said something like this:
while (N <= 0) {
TextIO.put("The starting point must be positive. Please try again: ");
N = TextIO.getlnInt();
}
It seems that when you ask the user for input, it pauses until a response is received? I'm used to what happens asynchronously. Is this normal for Java? or can you do both?
Thanks.
source
share