#Scanner type error "no line found"

1 messages · Page 1 of 1 (latest)

feral trout
#

My code runs ```
System.out.println("Please enter the # of Columns");
int columns = Utility.recieveEnsuredNumber();

    System.out.println("Please enter the # of Rows");
    int rows = Utility.recieveEnsuredNumber();```

at the beginning, and it works fine for the first one, but on the second I get the error: Exception in thread "main" java.util.NoSuchElementException: No line found
How can I remedy this?

true tendonBOT
#

<@&987246399047479336> please have a look, thanks.

feral trout
#

The method "recieveEnsuredNumber()" is the second to last in this file

feral trout
#

I've read that it runs out of lines, but how do I give it more?

#

I don't know if I completely understand what it means by lines.