Cornix is right.
You excluded the userInput from being assigned to storeNumber by not placing it within the For loop



for(int i = 0; i < 10; i++) {
userInput =...