Compartilhar via


Scanner.HasNext Property

Definition

Returns true if this scanner has another token in its input.

public bool HasNext { [Android.Runtime.Register("hasNext", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasNext", "()Z", "")>]
member this.HasNext : bool

Property Value

true if and only if this scanner has another token

Implements

Attributes

Exceptions

if the Scanner has been closed.

Remarks

Returns true if this scanner has another token in its input. This method may block while waiting for input to scan. The scanner does not advance past any input.

Java documentation for java.util.Scanner.hasNext().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to