Java Scanner reset() Method
The reset() method of Java Scanner class is used to reset the Scanner which are in using. The resetting of scanner discards all of its explicit state information.
Following is the declaration of reset() method:
This method does not accept any parameter.
The reset() method reurns the Scanner which are in using.
Java 1.6 and above
1: is 2: a 3: JavaTpointThis 4: is 5: a 6: JavaTpoint
Hello Java 10 + 10 = 20.0 false Default Radix: 10 en_IN