Scanner

suggest change

Versions

The Scanner class has been part of Java SE since 5.

Syntax

Parameters

Parameter Details
Source A String, a File, or an InputStream

Remarks

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents