| Parameter | Details |
|---|---|
| Source | Source could be either one of String, File or any kind of InputStream |
The Scanner class was introduced in Java 5. The reset() method was added in Java 6, and a couple of new constructors were added in Java 7 for interoperability with the (then) new Path interface.