Udostępnij za pośrednictwem


Scanner.HasNextBoolean Property

Definition

Returns true if the next token in this scanner's input can be interpreted as a boolean value using a case insensitive pattern created from the string "true|false".

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

Property Value

true if and only if this scanner's next token is a valid boolean value

Attributes

Exceptions

if the Scanner has been closed.

Remarks

Returns true if the next token in this scanner's input can be interpreted as a boolean value using a case insensitive pattern created from the string "true|false". The scanner does not advance past the input that matched.

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

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