As the error message says: the Random class does not have a nextLine method. You can only call methods that exist not ones you think exist. Even if it was to work the Random class generates numbers....
Type: Posts; User: Junky
As the error message says: the Random class does not have a nextLine method. You can only call methods that exist not ones you think exist. Even if it was to work the Random class generates numbers....
This might be easier if you deal with the numbers as Strings and chars instead of ints. For single digit numbers simply concat a '0' to the front.