I have Java code that asks for user input and then stores this data in a string variable. The below function is part of a class called \'number\' and is called in the main funct
You have to close the scanner when everything is done.